Mercurial > hg-stable
comparison mercurial/mdiff.py @ 16629:1435866c1937
parser: use PyInt_FromSsize_t in index_stats
Eliminates
mercurial/parsers.c(515) : warning C4244: 'function' : conversion from
'Py_ssize_t' to 'long', possible loss of data
mercurial/parsers.c(520) : warning C4244: 'function' : conversion from
'Py_ssize_t' to 'long', possible loss of data
mercurial/parsers.c(521) : warning C4244: 'function' : conversion from
'Py_ssize_t' to 'long', possible loss of data
when compiling for Windows x64 target using the Microsoft compiler.
PyInt_FromSsize_t does not exist for Python 2.4 and earlier, so we define a
fallback in util.h to use PyInt_FromLong when compiling for Python 2.4.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 09 May 2012 09:58:50 +0200 |
parents | 16b75661828e |
children | d587925680d9 |
comparison
equal
deleted
inserted
replaced
16628:3c738cb162bf | 16629:1435866c1937 |
---|