From 99d1b3dd045a3b967ffe9b48559a4988d0b7c87d Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 15 Mar 2006 19:02:15 +0000 Subject: [PATCH] improved string hash table distribution --- src/libCom/cxxTemplates/resourceLib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index bb022dd5f..a7b35064f 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -1164,7 +1164,7 @@ stringId::~stringId() resTableIndex stringId::hash() const { const unsigned stringIdMinIndexWidth = CHAR_BIT; - const unsigned stringIdMaxIndexWidth = sizeof ( unsigned ); + const unsigned stringIdMaxIndexWidth = CHAR_BIT * sizeof ( unsigned ); const unsigned char *pUStr = reinterpret_cast < const unsigned char * > ( this->pStr );