]> git.ozlabs.org Git - ccan/commit
idtree: Fix comparison is always false warning
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Jan 2016 13:14:19 +0000 (00:14 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 2 Feb 2016 12:00:06 +0000 (23:00 +1100)
commit2b48199f339c411c047dc1ecba889bd413bf2663
treee56ca0f6ccb64880bcfdab7f52404b9ae56397b6
parent71b4e3ad90db6bacc51552438c3f6eb2a20d2631
idtree: Fix comparison is always false warning

idtree.c:146 triggers a "comparison is always false" warning on some
compiler configurations, since the 'id' variable is unsigned.

Elsewhere in the module ids seem to be represented by (signed) ints, so
use the same convention here, suppressing the warning and also maybe being
more correct in other ways.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/idtree/idtree.c