Commit 06e56a50 authored by Jun Hiroe's avatar Jun Hiroe

Refactor mrb_str_hash()

parent b9dc9ccd
......@@ -1260,8 +1260,7 @@ mrb_str_hash(mrb_state *mrb, mrb_value str)
key = key*65599 + *p;
p++;
}
key = key + (key>>5);
return key;
return key + (key>>5);
}
/* 15.2.10.5.20 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment