ruby-changes:22046
From: nagachika <ko1@a...>
Date: Thu, 22 Dec 2011 00:42:53 +0900 (JST)
Subject: [ruby-changes:22046] nagachika:r34095 (trunk): * ext/bigdecimal/bigdecimal.c (VpMult, VpCtoV, VpSqrt): remove assined
nagachika 2011-12-22 00:42:41 +0900 (Thu, 22 Dec 2011) New Revision: 34095 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34095 Log: * ext/bigdecimal/bigdecimal.c (VpMult, VpCtoV, VpSqrt): remove assined but unused variables. Modified files: trunk/ChangeLog trunk/ext/bigdecimal/bigdecimal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34094) +++ ChangeLog (revision 34095) @@ -1,3 +1,8 @@ +Thu Dec 22 00:40:24 2011 CHIKANAGA Tomoyuki <nagachika00@g...> + + * ext/bigdecimal/bigdecimal.c (VpMult, VpCtoV, VpSqrt): remove assined + but unused variables. + Wed Dec 21 18:28:22 2011 NAKAMURA Usaku <usa@r...> * common.mk (newline.c, miniprelude.c): revert r33949 because the change Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 34094) +++ ext/bigdecimal/bigdecimal.c (revision 34095) @@ -4242,7 +4242,7 @@ { size_t MxIndA, MxIndB, MxIndAB, MxIndC; size_t ind_c, i, ii, nc; - size_t ind_as, ind_ae, ind_bs, ind_be; + size_t ind_as, ind_ae, ind_bs; BDIGIT carry; BDIGIT_DBL s; Real *w; @@ -4305,17 +4305,14 @@ ind_as = MxIndA - nc; ind_ae = MxIndA; ind_bs = MxIndB; - ind_be = MxIndB - nc; } else if(nc <= MxIndA) { /* The middle rectangular of the Fig. */ ind_as = MxIndA - nc; ind_ae = MxIndA -(nc - MxIndB); ind_bs = MxIndB; - ind_be = 0; } else if(nc > MxIndA) { /* The right triangle of the Fig. */ ind_as = 0; ind_ae = MxIndAB - nc - 1; ind_bs = MxIndB -(nc - MxIndA); - ind_be = 0; } for(i = ind_as; i <= ind_ae; ++i) { @@ -5039,7 +5036,6 @@ VpCtoV(Real *a, const char *int_chr, size_t ni, const char *frac, size_t nf, const char *exp_chr, size_t ne) { size_t i, j, ind_a, ma, mi, me; - size_t loc; SIGNED_VALUE e, es, eb, ef; int sign, signe, exponent_overflow; @@ -5136,7 +5132,6 @@ j = 0; } } - loc = 1; /* get fraction part */ @@ -5385,7 +5380,7 @@ { Real *f = NULL; Real *r = NULL; - size_t y_prec, f_prec; + size_t y_prec; SIGNED_VALUE n, e; SIGNED_VALUE prec; ssize_t nr; @@ -5422,7 +5417,6 @@ nr = 0; y_prec = y->MaxPrec; - f_prec = f->MaxPrec; prec = x->exponent - (ssize_t)y_prec; if (x->exponent > 0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/