lib/util/idtree.c: fix UB by using uint in left-shift
authorAurelien Aptel <aaptel@suse.com>
Thu, 25 Feb 2016 12:58:01 +0000 (13:58 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 26 Feb 2016 18:27:08 +0000 (19:27 +0100)
commit0d08af70c83f98bf0daeef45a0d76676a1fbde5a
treec2286bd9cbf36ecd16bb2510e60e0fc2b9f41e36
parent39081afbe5f79192f6b42aa5670ebb757c98e875
lib/util/idtree.c: fix UB by using uint in left-shift

Using negative values on the left-side of a left-shift operation is an
Undefined Behaviour in C.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
lib/util/idtree.c