changeset 36916:1b9f6440506b

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
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 09 Mar 2018 21:59:07 -0500
parents 651c80720eed
children 7affcabf561e
files mercurial/cext/bdiff.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);