1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* hash.c (hash_i): use Murmurhash.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-15 05:59:03 +00:00
parent 08638ed7b8
commit e279c5d6e5
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Feb 15 14:58:07 2009 Tanaka Akira <akr@fsij.org>
* hash.c (hash_i): use Murmurhash.
Sun Feb 15 11:45:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Sun Feb 15 11:45:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* variable.c (rb_define_hooked_variable): suppress false assertion * variable.c (rb_define_hooked_variable): suppress false assertion

3
hash.c
View file

@ -1523,8 +1523,7 @@ static int
hash_i(VALUE key, VALUE val, int *hval) hash_i(VALUE key, VALUE val, int *hval)
{ {
if (key == Qundef) return ST_CONTINUE; if (key == Qundef) return ST_CONTINUE;
*hval ^= rb_hash(key); *hval ^= rb_hash_end(rb_hash_uint(rb_hash_start(rb_hash(key)), rb_hash(val)));
*hval ^= rb_hash(val);
return ST_CONTINUE; return ST_CONTINUE;
} }