changelog: change input type of index_get_parents
authorLaurent Charignon <lcharignon@fb.com>
Tue, 26 May 2015 12:08:50 -0700
changeset 25296 260fb5968de0
parent 25295 701df761aa94
child 25297 3966e39fea98
changelog: change input type of index_get_parents We were wrongfully using int instead of Py_ssize_t for the revision number.
mercurial/parsers.c
--- a/mercurial/parsers.c	Fri May 22 17:08:59 2015 -0500
+++ b/mercurial/parsers.c	Tue May 26 12:08:50 2015 -0700
@@ -1177,7 +1177,8 @@
 	return ret;
 }
 
-static inline void index_get_parents(indexObject *self, int rev, int *ps)
+static inline void index_get_parents(indexObject *self, Py_ssize_t rev,
+				int *ps)
 {
 	if (rev >= self->length - 1) {
 		PyObject *tuple = PyList_GET_ITEM(self->added,