# HG changeset patch # User André Sintzoff # Date 2013-04-18 18:28:38 # Node ID 365b0de17c1cd6c891e9207b9dd922739cdea958 # Parent 36067f5baf2475580a519468e347569181d945d9 parsers: remove warning: format ‘%ld’ expects argument of type ‘long int’ gcc 4.6.3 on 12.04 Ubuntu machine emits warnings: mercurial/parsers.c: In function ‘find_deepest’: mercurial/parsers.c:1288:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Py_ssize_t’ [-Wformat] mercurial/parsers.c:1288:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘Py_ssize_t’ [-Wformat] diff --git a/mercurial/parsers.c b/mercurial/parsers.c --- a/mercurial/parsers.c +++ b/mercurial/parsers.c @@ -1285,7 +1285,7 @@ static PyObject *find_deepest(indexObjec if (revcount > capacity) { PyErr_Format(PyExc_OverflowError, "bitset size (%ld) > capacity (%ld)", - revcount, capacity); + (long)revcount, (long)capacity); return NULL; }