changeset 16618:6bae941b58ad

parsers: change the type of nt_level We should generally prefer Py_ssize_t whenever we are talking about lengths.
author Bryan O'Sullivan <bryano@fb.com>
date Tue, 08 May 2012 14:48:50 -0700
parents 4fb16743049d
children 8c3c9031f5aa
files mercurial/parsers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))