[iortcw] 89/152: All: [tools/asm/q3asm.c] Remove 'abs(unsigned)', which is unnecessary and potentially wrong
Simon McVittie
smcv at debian.org
Fri Sep 8 10:40:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.5a
in repository iortcw.
commit 240776b8d20520fa598cc35a6ace10750a8c3e0f
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Mon Jul 25 18:44:51 2016 -0400
All: [tools/asm/q3asm.c] Remove 'abs(unsigned)', which is unnecessary and potentially wrong
---
MP/code/tools/asm/q3asm.c | 2 +-
SP/code/tools/asm/q3asm.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/MP/code/tools/asm/q3asm.c b/MP/code/tools/asm/q3asm.c
index 191a9db..8be0124 100644
--- a/MP/code/tools/asm/q3asm.c
+++ b/MP/code/tools/asm/q3asm.c
@@ -477,7 +477,7 @@ static unsigned int HashString (const char *key)
acc = (acc << 2) | (acc >> 30);
acc &= 0xffffffffU;
}
- return abs(acc);
+ return acc;
}
diff --git a/SP/code/tools/asm/q3asm.c b/SP/code/tools/asm/q3asm.c
index 191a9db..8be0124 100644
--- a/SP/code/tools/asm/q3asm.c
+++ b/SP/code/tools/asm/q3asm.c
@@ -477,7 +477,7 @@ static unsigned int HashString (const char *key)
acc = (acc << 2) | (acc >> 30);
acc &= 0xffffffffU;
}
- return abs(acc);
+ return acc;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list