X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fidtree%2Fidtree.c;h=6e75450e67e85af287a9967cd7e88af66e147a5b;hb=98d16c40f7cb21268751da58c0cb0d14efd38c5a;hp=5bd8882220868d02d4d172ded3967643f6507b17;hpb=fb33661a05d2e42b675f4d84718312b400ae52a4;p=ccan diff --git a/ccan/idtree/idtree.c b/ccan/idtree/idtree.c index 5bd88822..6e75450e 100644 --- a/ccan/idtree/idtree.c +++ b/ccan/idtree/idtree.c @@ -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. */