talloc: fix compiler warning
commit21e38adce7b52da000a693f5837aba457f8e9bb3
authorStefan Metzmacher <metze@samba.org>
Wed, 20 Nov 2013 08:58:09 +0000 (20 09:58 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 Mar 2015 21:13:10 +0000 (15 22:13 +0100)
tree6ccdf0a7ef353c65e373a6bb54541e2557dcf2be
parent43049baba55eac249c4772ec3956fed0d039a586
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>
(cherry picked from commit de822b58476093dc43c27577d2f7074541113cc5)
lib/talloc/talloc.c