From 06e56a5004fc89d47a683b846d0c51d46c1ff0f7 Mon Sep 17 00:00:00 2001 From: Jun Hiroe Date: Mon, 5 May 2014 12:59:26 +0900 Subject: Refactor mrb_str_hash() --- src/string.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index 7de7d2505..4ef5461c4 100644 --- a/src/string.c +++ b/src/string.c @@ -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 */ -- cgit v1.2.3