changeset 25296:260fb5968de0

changelog: change input type of index_get_parents We were wrongfully using int instead of Py_ssize_t for the revision number.
author Laurent Charignon <lcharignon@fb.com>
date Tue, 26 May 2015 12:08:50 -0700
parents 701df761aa94
children 3966e39fea98
files mercurial/parsers.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,