Made hash functions able to deal with keys with negative numbers.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14066 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-08-26 02:02:33 +00:00
parent 7b285866ff
commit f26e4a1c98
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ thread_struct_hash(void *_t, const void *_key, uint32 range)
if (t != NULL)
return t->id % range;
return key->id % range;
return (uint32)key->id % range;
}