mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Refactor mrb_str_hash()
This commit is contained in:
+1
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user