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

Initialize bin

* hash.c (linear_update): initialize `bin` just to silence false
  warnings by old gcc 4.8.  [Bug #15299]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-12-10 02:01:21 +00:00
parent f798ff4c43
commit 485f3b57bc

2
hash.c
View file

@ -814,7 +814,7 @@ linear_update(VALUE hash, st_data_t key,
st_update_callback_func *func, st_data_t arg)
{
int retval, existing;
unsigned bin;
unsigned bin = RHASH_ARRAY_MAX_BOUND;
st_data_t value = 0, old_key;
st_hash_t hash_value = do_hash(key);