X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fidtree%2Fidtree.c;h=6e75450e67e85af287a9967cd7e88af66e147a5b;hp=48add6a8ac4fa917751ac92a06709a730b9e0ba6;hb=36a15d7dee063b6b8ce0480482969e4ba49460a4;hpb=2b48199f339c411c047dc1ecba889bd413bf2663 diff --git a/ccan/idtree/idtree.c b/ccan/idtree/idtree.c index 48add6a8..6e75450e 100644 --- a/ccan/idtree/idtree.c +++ b/ccan/idtree/idtree.c @@ -135,7 +135,7 @@ restart: */ sh = IDTREE_BITS * (l + 1); if (oid >> sh == id >> sh) - continue; + continue; else goto restart; } @@ -278,7 +278,7 @@ void *idtree_lookup(const struct idtree *idp, int id) * present. If so, tain't one of ours! */ if (n + IDTREE_BITS < 31 && - (id & ~(~0 << MAX_ID_SHIFT)) >> (n + IDTREE_BITS)) + (id & ~(~0U << MAX_ID_SHIFT)) >> (n + IDTREE_BITS)) return NULL; /* Mask off upper bits we don't use for the search. */