diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 12:38:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 12:38:43 +0000 |
commit | b615309541f0df96399b7b8154967eeb4fc06327 (patch) | |
tree | 136d3edd527362e59850bb3f5ba5704741030bfa /hash.c | |
parent | b877f66a50db7cd3064691467f33f8ab2ca18e92 (diff) | |
download | ruby-b615309541f0df96399b7b8154967eeb4fc06327.tar.gz |
symbol.c: fix dynamic symbol hash value
* hash.c (any_hash), symbol.c (dsymbol_alloc): fix dynamic symbol
hash value by restricting in Fixnum range, that is `long`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -150,7 +150,7 @@ any_hash(VALUE a, st_index_t (*other_func)(VALUE)) hnum = rb_str_hash(a); } else if (BUILTIN_TYPE(a) == T_SYMBOL) { - return RSYMBOL(a)->hashval; + hnum = RSYMBOL(a)->hashval; } else if (BUILTIN_TYPE(a) == T_FLOAT) { flt: |