diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-25 05:29:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-25 05:29:35 +0000 |
commit | 7db534a20c78cf4b9d8eb5f3c6a0198c2dd65aad (patch) | |
tree | 6b52b2e04eb5961d29f362359e9b774fe1245afb /string.c | |
parent | b827fdffe60d612762dd8628e3dea9b6548a4f1c (diff) |
vm_insnhelper.c: rb_eql_opt should call eql?
* vm_insnhelper.c (rb_eql_opt): should call #eql? on Float and
String, not #==.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3183,7 +3183,7 @@ rb_str_equal(VALUE str1, VALUE str2) * Two strings are equal if they have the same length and content. */ -static VALUE +VALUE rb_str_eql(VALUE str1, VALUE str2) { if (str1 == str2) return Qtrue; |