use labs() for variables of type long instead of abs()
authorRené Scharfe <redacted>
Sat, 15 Nov 2014 13:27:21 +0000 (14:27 +0100)
committerJunio C Hamano <redacted>
Mon, 17 Nov 2014 16:57:07 +0000 (08:57 -0800)
commit31a8aa1ee84f4fba7597b0fa2e99f94596c079bb
tree392314094cd252de73c2e3e47b0a8ee8c3449442
parent6f5ef44e0d8933621fcd50127518557013002313
use labs() for variables of type long instead of abs()

Using abs() on long values can cause truncation, so use labs() instead.
Reported by Clang 3.5 (-Wabsolute-value, enabled by -Wall).

Signed-off-by: Rene Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/receive-pack.c
git clone https://git.99rst.org/PROJECT