diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-10 02:01:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-10 02:01:21 +0000 |
commit | 485f3b57bc00fa7e4035417e98da146b3299b970 (patch) | |
tree | aeae84f6e469fbf8df35628e11b8ed40497de77a | |
parent | f798ff4c43fc8cf7b00bd770d7eb78c0af664eee (diff) | |
download | ruby-485f3b57bc00fa7e4035417e98da146b3299b970.tar.gz |
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
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |