Mercurial > hg-stable
changeset 16695:0a0933d3d59c
diffhelpers: use Py_ssize_t in testhunk()
Eliminates
mercurial/diffhelpers.c(143) : warning C4244: '=' : conversion from
'Py_ssize_t' to 'int', possible loss of data
mercurial/diffhelpers.c(144) : warning C4244: '=' : conversion from
'Py_ssize_t' to 'int', possible loss of data
when compiling for Windows x64 target using the Microsoft compiler.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sat, 12 May 2012 14:00:51 +0200 |
parents | 797b76205408 |
children | d1afbf03e69a |
files | mercurial/diffhelpers.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/diffhelpers.c Sat May 12 13:21:08 2012 +0200 +++ b/mercurial/diffhelpers.c Sat May 12 14:00:51 2012 +0200 @@ -134,8 +134,8 @@ PyObject *a, *b; long bstart; - int alen, blen; - int i; + Py_ssize_t alen, blen; + Py_ssize_t i; char *sa, *sb; if (!PyArg_ParseTuple(args, "OOl", &a, &b, &bstart))