summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-10 18:18:31 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-10 18:18:31 +0000
commitaf4e6084d09824ffa2c036d017369607adcc014e (patch)
tree208e6fae156ad0f77df226046666a068e76da8b1 /insns.def
parent9a938987cb6b3ed3f0c7735f5b19b10f45694a3f (diff)
downloadruby-af4e6084d09824ffa2c036d017369607adcc014e.tar.gz
* insns.def: Fix optimization bug of Float#/ [Bug #9238]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44127 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 a636f555e4..ad4bba6912 100644
--- a/insns.def
+++ b/insns.def
@@ -1511,7 +1511,7 @@ opt_div
val = LONG2NUM(div);
}
else if (FLONUM_2_P(recv, obj) &&
- BASIC_OP_UNREDEFINED_P(BOP_MULT, FLOAT_REDEFINED_OP_FLAG)) {
+ BASIC_OP_UNREDEFINED_P(BOP_DIV, FLOAT_REDEFINED_OP_FLAG)) {
val = DBL2NUM(RFLOAT_VALUE(recv) / RFLOAT_VALUE(obj));
}
else if (!SPECIAL_CONST_P(recv) && !SPECIAL_CONST_P(obj)) {