mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (opt_div): FIX2NUM may not work for corner cases.
[ruby-dev:31210] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a4e0f1f5a
commit
716ad250e9
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Jul 14 02:05:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* insns.def (opt_div): FIX2NUM may not work for corner cases.
|
||||
[ruby-dev:31210]
|
||||
|
||||
Sat Jul 14 00:34:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* numeric.c (int_round): should not return false, but self.
|
||||
|
|
|
@ -1858,7 +1858,7 @@ opt_div
|
|||
div -= 1;
|
||||
}
|
||||
}
|
||||
val = LONG2FIX(div);
|
||||
val = LONG2NUM(div);
|
||||
}
|
||||
else if (!SPECIAL_CONST_P(recv) && !SPECIAL_CONST_P(obj)) {
|
||||
if (0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue