mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Bug for 2nd arg of round fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
906ab8e25d
commit
ce356b524e
1 changed files with 4 additions and 1 deletions
|
@ -936,11 +936,14 @@ BigDecimal_round(int argc, VALUE *argv, VALUE self)
|
|||
Check_Type(vLoc, T_FIXNUM);
|
||||
iLoc = FIX2INT(vLoc);
|
||||
break;
|
||||
case 2:
|
||||
case 2:{
|
||||
int sws = sw;
|
||||
Check_Type(vLoc, T_FIXNUM);
|
||||
iLoc = FIX2INT(vLoc);
|
||||
Check_Type(vRound, T_FIXNUM);
|
||||
sw = VpSetRoundMode(FIX2INT(vRound));
|
||||
VpSetRoundMode(sws);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue