comparison mercurial/cext/bdiff.c @ 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 90f8fe72446c
children 273ea09f6550
comparison
equal deleted inserted replaced
36915:651c80720eed 36916:1b9f6440506b
255 abort: 255 abort:
256 Py_XDECREF(result); 256 Py_XDECREF(result);
257 return NULL; 257 return NULL;
258 } 258 }
259 259
260 static int hunk_consumer(long a1, long a2, long b1, long b2, void *priv) 260 static int hunk_consumer(int64_t a1, int64_t a2, int64_t b1, int64_t b2,
261 void *priv)
261 { 262 {
262 PyObject *rl = (PyObject *)priv; 263 PyObject *rl = (PyObject *)priv;
263 PyObject *m = Py_BuildValue("llll", a1, a2, b1, b2); 264 PyObject *m = Py_BuildValue("llll", a1, a2, b1, b2);
264 if (!m) 265 if (!m)
265 return -1; 266 return -1;