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 );