ruby-changes:29888
From: akr <ko1@a...>
Date: Sat, 13 Jul 2013 15:53:22 +0900 (JST)
Subject: [ruby-changes:29888] akr:r41940 (trunk): * bignum.c (bary_small_lshift): Use size_t instead of long.
akr 2013-07-13 15:53:12 +0900 (Sat, 13 Jul 2013) New Revision: 41940 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41940 Log: * bignum.c (bary_small_lshift): Use size_t instead of long. (bary_small_rshift): Ditto. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41939) +++ ChangeLog (revision 41940) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jul 13 15:51:38 2013 Tanaka Akira <akr@f...> + + * 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@f...> * bignum.c (bary_small_lshift): Functions moved to remove Index: bignum.c =================================================================== --- bignum.c (revision 41939) +++ bignum.c (revision 41940) @@ -441,9 +441,9 @@ maxpow_in_bdigit(int base, int *exp_ret) https://github.com/ruby/ruby/blob/trunk/bignum.c#L441 } 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 *x https://github.com/ruby/ruby/blob/trunk/bignum.c#L455 } 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/