talloc: fix compiler warning
commitde822b58476093dc43c27577d2f7074541113cc5
authorStefan Metzmacher <metze@samba.org>
Wed, 20 Nov 2013 08:58:09 +0000 (20 09:58 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 16 May 2014 15:21:04 +0000 (16 17:21 +0200)
tree55808947c1214ca87ef1297523f4f4ac4758149d
parenteb95fc8866dd1710b4cc2f4a4e1dc9867424def2
talloc: fix compiler warning

This avoids the following warning when using:

CFLAGS="-O3 -g -fstrict-overflow -Wstrict-overflow=5"

../talloc.c: In Funktion »talloc_is_parent«:
../talloc.c:2658:21: Warnung: assuming signed overflow does not occur when
changing X +- C1 cmp C2 to X cmp C1 +- C2 [-Wstrict-overflow]

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/talloc/talloc.c