aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-13 06:53:12 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-13 06:53:12 +0000
commit0001cf6bdc6d0eb9130bfc162b61c26279339e81 (patch)
tree1a824b5b57e168803a3be7a0d27418a6a498019d /bignum.c
parente31c9896d68106a9bdc872c75c3c28f79a5bb4d6 (diff)
downloadruby-0001cf6bdc6d0eb9130bfc162b61c26279339e81.tar.gz
* bignum.c (bary_small_lshift): Use size_t instead of long.
(bary_small_rshift): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bignum.c b/bignum.c
index 8af21cf948..3b3cca6c71 100644
--- a/bignum.c
+++ b/bignum.c
@@ -441,9 +441,9 @@ maxpow_in_bdigit(int base, int *exp_ret)
}
static BDIGIT
-bary_small_lshift(BDIGIT *zds, BDIGIT *xds, long n, int shift)
+bary_small_lshift(BDIGIT *zds, BDIGIT *xds, size_t n, int shift)
{
- long i;
+ size_t i;
BDIGIT_DBL num = 0;
for (i=0; i<n; i++) {
@@ -455,7 +455,7 @@ bary_small_lshift(BDIGIT *zds, BDIGIT *xds, long n, int shift)
}
static void
-bary_small_rshift(BDIGIT *zds, BDIGIT *xds, long n, int shift, int sign_bit)
+bary_small_rshift(BDIGIT *zds, BDIGIT *xds, size_t n, int shift, int sign_bit)
{
BDIGIT_DBL num = 0;
BDIGIT x;