diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-29 03:48:21 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-29 03:48:21 +0000 |
commit | 98d7c2b8f186bb1b036f531465a1e5b006922102 (patch) | |
tree | f5786c08e58c7e98780c2aa1df6f00d30e6ad26c /ext/bigdecimal | |
parent | ee1a4eefa531a5c4601ee74b0b1ac1ef8f6921db (diff) |
* ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_add2,
BigDecimal_sub2, BigDecimal_mult2, VpLimitRound): remove meaningless
casts to get rid of compiler warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 0d25a60337..9781e4e6f7 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -1178,7 +1178,7 @@ BigDecimal_div2(int argc, VALUE *argv, VALUE self) GUARD_OBJ(res,VpCreateRbObject((mx * 2 + 2)*VpBaseFig(), "#0")); VpDivd(cv,res,av,bv); VpSetPrecLimit(pl); - VpLeftRound(cv,(int)VpGetRoundMode(),ix); + VpLeftRound(cv,VpGetRoundMode(),ix); return ToValue(cv); } } @@ -1196,7 +1196,7 @@ BigDecimal_add2(VALUE self, VALUE b, VALUE n) VALUE c = BigDecimal_add(self,b); VpSetPrecLimit(pl); GUARD_OBJ(cv,GetVpValue(c,1)); - VpLeftRound(cv,(int)VpGetRoundMode(),mx); + VpLeftRound(cv,VpGetRoundMode(),mx); return ToValue(cv); } } @@ -1213,7 +1213,7 @@ BigDecimal_sub2(VALUE self, VALUE b, VALUE n) VALUE c = BigDecimal_sub(self,b); VpSetPrecLimit(pl); GUARD_OBJ(cv,GetVpValue(c,1)); - VpLeftRound(cv,(int)VpGetRoundMode(),mx); + VpLeftRound(cv,VpGetRoundMode(),mx); return ToValue(cv); } } @@ -1230,7 +1230,7 @@ BigDecimal_mult2(VALUE self, VALUE b, VALUE n) VALUE c = BigDecimal_mult(self,b); VpSetPrecLimit(pl); GUARD_OBJ(cv,GetVpValue(c,1)); - VpLeftRound(cv,(int)VpGetRoundMode(),mx); + VpLeftRound(cv,VpGetRoundMode(),mx); return ToValue(cv); } } @@ -4792,7 +4792,7 @@ VpLimitRound(Real *c, size_t ixDigit) if(!ix) return 0; if(!ixDigit) ixDigit = c->Prec-1; if((ix+BASE_FIG-1)/BASE_FIG > ixDigit+1) return 0; - return VpLeftRound(c, (int)VpGetRoundMode(), (ssize_t)ix); + return VpLeftRound(c, VpGetRoundMode(), (ssize_t)ix); } /* If I understand correctly, this is only ever used to round off the final decimal |