ruby-changes:17355
From: usa <ko1@a...>
Date: Wed, 29 Sep 2010 12:51:37 +0900 (JST)
Subject: [ruby-changes:17355] Ruby:r29360 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_add2,
usa 2010-09-29 12:48:21 +0900 (Wed, 29 Sep 2010) New Revision: 29360 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29360 Log: * ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_add2, BigDecimal_sub2, BigDecimal_mult2, VpLimitRound): remove meaningless casts to get rid of compiler warnings. Modified files: trunk/ChangeLog trunk/ext/bigdecimal/bigdecimal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29359) +++ ChangeLog (revision 29360) @@ -1,3 +1,9 @@ +Wed Sep 29 12:45:30 2010 NAKAMURA Usaku <usa@r...> + + * ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_add2, + BigDecimal_sub2, BigDecimal_mult2, VpLimitRound): remove meaningless + casts to get rid of compiler warnings. + Wed Sep 29 12:35:13 2010 Nobuyoshi Nakada <nobu@r...> * ext/bigdecimal/bigdecimal.c (VPrint, VpToString): fix format. Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 29359) +++ ext/bigdecimal/bigdecimal.c (revision 29360) @@ -1178,7 +1178,7 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/