summaryrefslogtreecommitdiff
path: root/runtime/utf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/utf.cc')
-rw-r--r--runtime/utf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/utf.cc b/runtime/utf.cc
index 5a116980c9..a2d6363c6e 100644
--- a/runtime/utf.cc
+++ b/runtime/utf.cc
@@ -178,8 +178,8 @@ int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count) {
return static_cast<int32_t>(hash);
}
-size_t ComputeModifiedUtf8Hash(const char* chars) {
- size_t hash = 0;
+uint32_t ComputeModifiedUtf8Hash(const char* chars) {
+ uint32_t hash = 0;
while (*chars != '\0') {
hash = hash * 31 + *chars++;
}