diff --git a/intl/locale/src/nsLocale.cpp b/intl/locale/src/nsLocale.cpp index 15a5be430748..b3473028d22e 100644 --- a/intl/locale/src/nsLocale.cpp +++ b/intl/locale/src/nsLocale.cpp @@ -104,7 +104,7 @@ nsLocale::Hash_HashFunction(const void* key) length = stringKey->Length(); for(length-=1;length>=0;length--) - hash += (PLHashNumber)((*stringKey)[length]); + hash += (PLHashNumber)stringKey->CharAt(length); return hash; }