* 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
This commit is contained in:
naruse 2016-03-08 08:54:38 +00:00
parent b0b2df253f
commit 87adc59b21
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Mar 8 17:53:09 2016 NARUSE, Yui <naruse@ruby-lang.org>
* insns.def (opt_mod): show its method name on ZeroDivisionError.
[Bug #12158]
Tue Mar 8 17:33:38 2016 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_write_console): now no need to check

View File

@ -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;