Refactor mrb_str_hash()

This commit is contained in:
Jun Hiroe
2014-05-05 12:59:26 +09:00
parent b9dc9ccd14
commit 06e56a5004
+1 -2
View File
@@ -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 */