* hash.c (any_hash): fix CI failure on L32LLP64 architecture.

The patch was provided by usa. [ruby-core:80484] [Bug #13376]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2017-03-29 15:00:45 +00:00
parent 4634c34db3
commit 0ad1685513
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Wed Mar 29 23:47:31 2017 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
* hash.c (any_hash): fix CI failure on L32LLP64 architecture.
The patch was provided by usa. [ruby-core:80484] [Bug #13376]
Wed Mar 29 06:22:27 2017 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
* hash.c (any_hash): fix Symbol#hash to be nondeterministic.

2
hash.c
View file

@ -168,7 +168,7 @@ any_hash(VALUE a, st_index_t (*other_func)(VALUE))
}
out:
hnum <<= 1;
return (st_index_t)RSHIFT(hnum, 1);
return (long)RSHIFT(hnum, 1);
}
static st_index_t

View file

@ -1,10 +1,10 @@
#define RUBY_VERSION "2.3.4"
#define RUBY_RELEASE_DATE "2017-03-29"
#define RUBY_PATCHLEVEL 300
#define RUBY_RELEASE_DATE "2017-03-30"
#define RUBY_PATCHLEVEL 301
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 3
#define RUBY_RELEASE_DAY 29
#define RUBY_RELEASE_DAY 30
#include "ruby/version.h"