aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-27 02:24:00 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-27 02:24:00 +0000
commit2cbb0a8b22175da7a5b9b15f120f24def39c9abb (patch)
tree0a7591016e4770b5f9fd766c6c3c99c3820498bc /code/ui
parent6bf20c78f5b69d40bcc4931df93d29198435ab67 (diff)
downloadioquake3-aero-2cbb0a8b22175da7a5b9b15f120f24def39c9abb.tar.gz
ioquake3-aero-2cbb0a8b22175da7a5b9b15f120f24def39c9abb.zip
Ludwig's 1st diff: Some 64bit fixes for x86_64. Also fixes Makefile build.
git-svn-id: svn://svn.icculus.org/quake3/trunk@7 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/ui')
-rwxr-xr-xcode/ui/ui_shared.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/ui/ui_shared.c b/code/ui/ui_shared.c
index 95d93d8..0856726 100755
--- a/code/ui/ui_shared.c
+++ b/code/ui/ui_shared.c
@@ -132,16 +132,16 @@ qboolean UI_OutOfMemory() {
return a hash value for the string
================
*/
-static long hashForString(const char *str) {
+static unsigned hashForString(const char *str) {
int i;
- long hash;
+ unsigned hash;
char letter;
hash = 0;
i = 0;
while (str[i] != '\0') {
letter = tolower(str[i]);
- hash+=(long)(letter)*(i+119);
+ hash+=(unsigned)(letter)*(i+119);
i++;
}
hash &= (HASH_TABLE_SIZE-1);
@@ -162,7 +162,7 @@ static stringDef_t *strHandle[HASH_TABLE_SIZE];
const char *String_Alloc(const char *p) {
int len;
- long hash;
+ unsigned hash;
stringDef_t *str, *last;
static const char *staticNULL = "";