bdiff: convert more longs to int64_t
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 09 Mar 2018 21:59:07 -0500
changeset 36916 1b9f6440506b
parent 36915 651c80720eed
child 36917 7affcabf561e
bdiff: convert more longs to int64_t MSVC previously flagged these where the function is stored in a pointer: bdiff.c(284) : warning C4028: formal parameter 1 different from declaration bdiff.c(284) : warning C4028: formal parameter 2 different from declaration bdiff.c(284) : warning C4028: formal parameter 3 different from declaration bdiff.c(284) : warning C4028: formal parameter 4 different from declaration
mercurial/cext/bdiff.c
--- a/mercurial/cext/bdiff.c	Fri Mar 09 21:42:33 2018 -0500
+++ b/mercurial/cext/bdiff.c	Fri Mar 09 21:59:07 2018 -0500
@@ -257,7 +257,8 @@
 	return NULL;
 }
 
-static int hunk_consumer(long a1, long a2, long b1, long b2, void *priv)
+static int hunk_consumer(int64_t a1, int64_t a2, int64_t b1, int64_t b2,
+                         void *priv)
 {
 	PyObject *rl = (PyObject *)priv;
 	PyObject *m = Py_BuildValue("llll", a1, a2, b1, b2);