From 4e13d36561868d78e9e5ff9b24aba67d418c67ed Mon Sep 17 00:00:00 2001 From: michal Date: Thu, 16 Jan 2003 07:38:40 +0000 Subject: -Wall cleanups (removed unused vars, no 'code has no effect' warnings) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 99bed7377a..c010bf7046 100644 --- a/bignum.c +++ b/bignum.c @@ -392,10 +392,8 @@ rb_cstr_to_inum(str, base, badcheck) } break; } - if (*str == '0') { /* squeeze preceeding 0s */ - while (*++str == '0'); - --str; - } + while (*str == '0') str++; /* squeeze preceeding 0s */ + len *= strlen(str)*sizeof(char); if (len <= (sizeof(VALUE)*CHAR_BIT)) { @@ -1125,7 +1123,7 @@ bigdivrem(x, y, divp, modp) yds = BDIGITS(y); if (ny == 0 && yds[0] == 0) rb_num_zerodiv(); - if (nx < ny || nx == ny && BDIGITS(x)[nx - 1] < BDIGITS(y)[ny - 1]) { + if (nx < ny || (nx == ny && BDIGITS(x)[nx - 1] < BDIGITS(y)[ny - 1])) { if (divp) *divp = rb_int2big(0); if (modp) *modp = x; return; -- cgit v1.2.3