parsers: change the type of nt_level
authorBryan O'Sullivan <bryano@fb.com>
Tue, 08 May 2012 14:48:50 -0700
changeset 16618 6bae941b58ad
parent 16617 4fb16743049d
child 16621 8c3c9031f5aa
parsers: change the type of nt_level We should generally prefer Py_ssize_t whenever we are talking about lengths.
mercurial/parsers.c
--- a/mercurial/parsers.c	Tue May 08 14:48:48 2012 -0700
+++ b/mercurial/parsers.c	Tue May 08 14:48:50 2012 -0700
@@ -538,7 +538,7 @@
 	return NULL;
 }
 
-static inline int nt_level(const char *node, int level)
+static inline int nt_level(const char *node, Py_ssize_t level)
 {
 	int v = node[level>>1];
 	if (!(level & 1))