# HG changeset patch # User Augie Fackler # Date 1440182031 14400 # Node ID e7e7182564f60622bd98083e94af3da74d597eaa # Parent c1aefe57cf4e8155863e3530274c12b1ad677ea2 parsers: avoid int/unsigned conversions Detected with make local CFLAGS='-Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter' CC=clang diff -r c1aefe57cf4e -r e7e7182564f6 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 */