# HG changeset patch # User Matt Harbison # Date 2018-03-10 02:59:07 # Node ID 1b9f6440506b3434e97eadd6f9b4b39dd0004154 # Parent 651c80720eedf555ab8965be59237ff7950d9b48 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 diff --git a/mercurial/cext/bdiff.c b/mercurial/cext/bdiff.c --- a/mercurial/cext/bdiff.c +++ b/mercurial/cext/bdiff.c @@ -257,7 +257,8 @@ abort: 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);