kern/subr_pctrie: Fix mismatched signedness in assertion comparison
'tos' is an index into an array and never holds a negative value. Correct its signedness to match PCTRIE_LIMIT, which it is compared to in assertions. No functional change (kills a warning).
This commit is contained in:
parent
4bb25ea3ad
commit
16397b2576
@ -385,7 +385,8 @@ pctrie_lookup_ge(struct pctrie *ptree, uint64_t index)
|
||||
#ifdef INVARIANTS
|
||||
int loops = 0;
|
||||
#endif
|
||||
int slot, tos;
|
||||
unsigned tos;
|
||||
int slot;
|
||||
|
||||
node = pctrie_getroot(ptree);
|
||||
if (node == NULL)
|
||||
@ -496,7 +497,8 @@ pctrie_lookup_le(struct pctrie *ptree, uint64_t index)
|
||||
#ifdef INVARIANTS
|
||||
int loops = 0;
|
||||
#endif
|
||||
int slot, tos;
|
||||
unsigned tos;
|
||||
int slot;
|
||||
|
||||
node = pctrie_getroot(ptree);
|
||||
if (node == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user