summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-02 14:10:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-02 14:10:51 +0000
commitba95b9787d941aeda329bba6427f7533b89ad2b7 (patch)
treef02e31a724c260f72b2701361bb5ac308cfbc98e
parentbc7c0a63fd9c3e51a34b0904539112b74b8147b3 (diff)
bignum.c: suppress a warning
* bignum.c (rb_cstr_to_inum): remove set but unused variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bignum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bignum.c b/bignum.c
index 6913290..092b83d 100644
--- a/bignum.c
+++ b/bignum.c
@@ -3801,8 +3801,7 @@ rb_cstr_to_inum(const char *str, int base, int badcheck)
}
else {
int digits_per_bdigits_dbl;
- BDIGIT_DBL power;
- power = maxpow_in_bdigit_dbl(base, &digits_per_bdigits_dbl);
+ maxpow_in_bdigit_dbl(base, &digits_per_bdigits_dbl);
num_bdigits = roomof(num_digits, digits_per_bdigits_dbl)*2;
if (num_bdigits < KARATSUBA_MUL_DIGITS) {