From 75db20e2ad78fbb518bdd948767b07c9635defdd Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 30 Jan 2017 03:02:16 +0100 Subject: fix some usages of abs(), part 3: potentially tool-changing changes --- src/tools/asm/q3asm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/asm') diff --git a/src/tools/asm/q3asm.c b/src/tools/asm/q3asm.c index 44a42196..dcd8be10 100644 --- a/src/tools/asm/q3asm.c +++ b/src/tools/asm/q3asm.c @@ -457,7 +457,7 @@ static int atoiNoCap (const char *s) HashString ============= */ -/* Default hash function of Kazlib 1.19, slightly modified. */ +/* Default hash function of Kazlib 1.19. */ static unsigned int HashString (const char *key) { static unsigned long randbox[] = { @@ -478,7 +478,7 @@ static unsigned int HashString (const char *key) acc = (acc << 2) | (acc >> 30); acc &= 0xffffffffU; } - return abs(acc); + return acc; } -- cgit