mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
e31c9896d6
commit
0001cf6bdc
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Jul 13 15:51:38 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bary_small_lshift): Use size_t instead of long.
|
||||
(bary_small_rshift): Ditto.
|
||||
|
||||
Sat Jul 13 15:33:33 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bary_small_lshift): Functions moved to remove
|
||||
|
|
6
bignum.c
6
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue