From 182095ea2227af124344ed73841db2e9571754c5 Mon Sep 17 00:00:00 2001 From: Oliver Braun Date: Tue, 3 Jul 2001 12:04:22 +0000 Subject: [PATCH] #88576# hash value can be negative --- sal/rtl/source/locale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sal/rtl/source/locale.c b/sal/rtl/source/locale.c index d99e298f79c2..dca303b61c8e 100644 --- a/sal/rtl/source/locale.c +++ b/sal/rtl/source/locale.c @@ -2,9 +2,9 @@ * * $RCSfile: locale.c,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 15:17:24 $ + * last change: $Author: obr $ $Date: 2001-07-03 13:04:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -155,7 +155,7 @@ void rtl_hashtable_init(RTL_HASHTABLE** table, sal_Int8 sizeIndex) sal_Int32 rtl_hashfunc(RTL_HASHTABLE* table, sal_Int32 key) { - return (key % table->Size); + return ( (sal_uInt32) key % table->Size); } sal_Bool rtl_hashtable_grow(RTL_HASHTABLE** table);