aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui
diff options
context:
space:
mode:
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 = "";