From 2cbb0a8b22175da7a5b9b15f120f24def39c9abb Mon Sep 17 00:00:00 2001
From: zakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>
Date: Sat, 27 Aug 2005 02:24:00 +0000
Subject: 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
---
 code/ui/ui_shared.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'code/ui')

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 = "";
 
-- 
cgit v1.2.3