summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-11 12:09:16 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-11 12:09:16 +0000
commit03e357444c85b059eebf187152a0645253e757bc (patch)
tree632bd5ca55919177f0be24149ee1827d2df6b115
parent42acabf11b689bc184adbe220c8d2b57f7b60737 (diff)
merge revision(s) 67467: [Backport #15756]
range.c: force hash values fixable * range.c (method_hash): force hash values fixable on LLP64 environment. [ruby-core:92191] [Bug #15756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--proc.c2
-rw-r--r--test/ruby/test_method.rb1
-rw-r--r--version.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index c09e845ec0..dc827c467f 100644
--- a/proc.c
+++ b/proc.c
@@ -1547,7 +1547,7 @@ method_hash(VALUE method)
hash = rb_hash_method_entry(hash, m->me);
hash = rb_hash_end(hash);
- return INT2FIX(hash);
+ return ST2FIX(hash);
}
/*
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 65d9e3d2e1..3b14b49577 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -197,6 +197,7 @@ class TestMethod < Test::Unit::TestCase
def o.foo; end
assert_kind_of(Integer, o.method(:foo).hash)
assert_equal(Array.instance_method(:map).hash, Array.instance_method(:collect).hash)
+ assert_kind_of(String, o.method(:foo).hash.to_s)
end
def test_owner
diff --git a/version.h b/version.h
index 762da5fb1b..e377c71395 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#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 52
+#define RUBY_PATCHLEVEL 53
#define RUBY_RELEASE_YEAR 2019
#define RUBY_RELEASE_MONTH 4