summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-26 07:58:28 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-26 07:58:28 +0000
commitc4b4e77c72b42f0a69c6a825954ec768d1b2375b (patch)
tree82428b01d29a336f150a95c1655410260bf5c078 /vm.c
parent26f7f7da272cfa4ad4a81758d4caef6528b6efbd (diff)
* insns.def (opt_regexpmatch2): Check String#=~ hasn't overridden
before calling rb_reg_match(). * test/ruby/test_string.rb: Test for above. * vm.c (vm_init_redefined_flag): Add BOP flag for String#=~ [ruby-core:57385] [Bug #8953] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index d647ab4..a43f3d6 100644
--- a/vm.c
+++ b/vm.c
@@ -1095,7 +1095,7 @@ vm_init_redefined_flag(void)
OP(Size, SIZE), (C(Array), C(String), C(Hash));
OP(EmptyP, EMPTY_P), (C(Array), C(String), C(Hash));
OP(Succ, SUCC), (C(Fixnum), C(String), C(Time));
- OP(EqTilde, MATCH), (C(Regexp));
+ OP(EqTilde, MATCH), (C(Regexp), C(String));
#undef C
#undef OP
}