Mercurial > hg
comparison mercurial/parsers.c @ 26075:e7e7182564f6
parsers: avoid int/unsigned conversions
Detected with
make local CFLAGS='-Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter' CC=clang
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 21 Aug 2015 14:33:51 -0400 |
parents | 8779ce81ea80 |
children | cefd5c8bab5d |
comparison
equal
deleted
inserted
replaced
26074:c1aefe57cf4e | 26075:e7e7182564f6 |
---|---|
703 Py_ssize_t length; /* current number of elements */ | 703 Py_ssize_t length; /* current number of elements */ |
704 PyObject *added; /* populated on demand */ | 704 PyObject *added; /* populated on demand */ |
705 PyObject *headrevs; /* cache, invalidated on changes */ | 705 PyObject *headrevs; /* cache, invalidated on changes */ |
706 PyObject *filteredrevs;/* filtered revs set */ | 706 PyObject *filteredrevs;/* filtered revs set */ |
707 nodetree *nt; /* base-16 trie */ | 707 nodetree *nt; /* base-16 trie */ |
708 int ntlength; /* # nodes in use */ | 708 unsigned ntlength; /* # nodes in use */ |
709 int ntcapacity; /* # nodes allocated */ | 709 unsigned ntcapacity; /* # nodes allocated */ |
710 int ntdepth; /* maximum depth of tree */ | 710 int ntdepth; /* maximum depth of tree */ |
711 int ntsplits; /* # splits performed */ | 711 int ntsplits; /* # splits performed */ |
712 int ntrev; /* last rev scanned */ | 712 int ntrev; /* last rev scanned */ |
713 int ntlookups; /* # lookups */ | 713 int ntlookups; /* # lookups */ |
714 int ntmisses; /* # lookups that miss the cache */ | 714 int ntmisses; /* # lookups that miss the cache */ |