parsers: avoid int/unsigned conversions
authorAugie Fackler <augie@google.com>
Fri, 21 Aug 2015 14:33:51 -0400
changeset 26075 e7e7182564f6
parent 26074 c1aefe57cf4e
child 26076 cebf7e48365e
parsers: avoid int/unsigned conversions Detected with make local CFLAGS='-Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter' CC=clang
mercurial/parsers.c
--- a/mercurial/parsers.c	Fri Aug 21 14:29:42 2015 -0400
+++ b/mercurial/parsers.c	Fri Aug 21 14:33:51 2015 -0400
@@ -705,8 +705,8 @@
 	PyObject *headrevs;    /* cache, invalidated on changes */
 	PyObject *filteredrevs;/* filtered revs set */
 	nodetree *nt;          /* base-16 trie */
-	int ntlength;          /* # nodes in use */
-	int ntcapacity;        /* # nodes allocated */
+	unsigned ntlength;          /* # nodes in use */
+	unsigned ntcapacity;        /* # nodes allocated */
 	int ntdepth;           /* maximum depth of tree */
 	int ntsplits;          /* # splits performed */
 	int ntrev;             /* last rev scanned */