mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge revision(s) 67468: [Backport #15757]
range.c: force hash values fixable * range.c (range_hash): force hash values fixable on LLP64 environment. [ruby-core:92194] [Bug #15757] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d1b82673bc
commit
42acabf11b
3 changed files with 5 additions and 4 deletions
2
range.c
2
range.c
|
@ -229,7 +229,7 @@ range_hash(VALUE range)
|
|||
hash = rb_hash_uint(hash, EXCL(range) << 24);
|
||||
hash = rb_hash_end(hash);
|
||||
|
||||
return LONG2FIX(hash);
|
||||
return ST2FIX(hash);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -203,6 +203,7 @@ class TestRange < Test::Unit::TestCase
|
|||
assert_not_equal((0..1).hash, (0...1).hash)
|
||||
assert_equal((0..nil).hash, (0..nil).hash)
|
||||
assert_not_equal((0..nil).hash, (0...nil).hash)
|
||||
assert_kind_of(String, (0..1).hash.to_s)
|
||||
end
|
||||
|
||||
def test_step
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#define RUBY_VERSION "2.6.3"
|
||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||
#define RUBY_PATCHLEVEL 51
|
||||
#define RUBY_PATCHLEVEL 52
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2019
|
||||
#define RUBY_RELEASE_MONTH 3
|
||||
#define RUBY_RELEASE_DAY 28
|
||||
#define RUBY_RELEASE_MONTH 4
|
||||
#define RUBY_RELEASE_DAY 11
|
||||
|
||||
#include "ruby/version.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue