changeset 19062:365b0de17c1c

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]
author André Sintzoff <andre.sintzoff@gmail.com>
date Thu, 18 Apr 2013 20:28:38 +0200
parents 36067f5baf24
children 7ae12ce87594
files mercurial/parsers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parsers.c	Thu Apr 18 19:50:04 2013 +0900
+++ b/mercurial/parsers.c	Thu Apr 18 20:28:38 2013 +0200
@@ -1285,7 +1285,7 @@
 	if (revcount > capacity) {
 		PyErr_Format(PyExc_OverflowError,
 			     "bitset size (%ld) > capacity (%ld)",
-			     revcount, capacity);
+			     (long)revcount, (long)capacity);
 		return NULL;
 	}