summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-08 08:54:38 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-08 08:54:38 +0000
commit87adc59b2135b1a5438ccc1c77d92fec92829b1a (patch)
treeac2ce22a82126afdaa5c434e44f2c17462b811b8 /insns.def
parentb0b2df253f676e747a338848485ed58111782df2 (diff)
downloadruby-87adc59b2135b1a5438ccc1c77d92fec92829b1a.tar.gz
* insns.def (opt_mod): show its method name on ZeroDivisionError.
[Bug #12158] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/insns.def b/insns.def
index f9514d4038..20140b30c1 100644
--- a/insns.def
+++ b/insns.def
@@ -1548,7 +1548,7 @@ opt_mod
long div, mod;
if (y == 0)
- rb_num_zerodiv();
+ goto INSN_LABEL(normal_dispatch);
if (y < 0) {
if (x < 0)
div = -x / -y;