8000 * bignum.c: Use BDIGIT type for hbase. · plusplus/ruby@ce20b98 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce20b98

Browse files
committed
* bignum.c: Use BDIGIT type for hbase.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b77f98a commit ce20b98

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Sat Jun 1 07:32:15 2013 Tanaka Akira <akr@fsij.org>
2+
3+
* bignum.c: Use BDIGIT type for hbase.
4+
15
Sat Jun 1 02:37:35 2013 NARUSE, Yui <naruse@ruby-lang.org>
26

37
* ext/socket/option.c (sockopt_s_byte): constructor of the sockopt

bignum.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ big2str_find_n1(VALUE x, int base)
10551055
}
10561056

10571057
static long
1058-
big2str_orig(VALUE x, int base, char* ptr, long len, long hbase, int hbase_numdigits, int trim)
1058+
big2str_orig(VALUE x, int base, char* ptr, long len, BDIGIT hbase, int hbase_numdigits, int trim)
10591059
{
10601060
long i = RBIGNUM_LEN(x), j = len;
10611061
BDIGIT* ds = BDIGITS(x);
@@ -1088,7 +1088,7 @@ big2str_orig(VALUE x, int base, char* ptr, long len, long hbase, int hbase_numdi
10881088

10891089
static long
10901090
big2str_karatsuba(VALUE x, int base, char* ptr,
1091-
long n1, long len, long hbase, int hbase_numdigits, int trim)
1091+
long n1, long len, BDIGIT hbase, int hbase_numdigits, int trim)
10921092
{
10931093
long lh, ll, m1;
10941094
VALUE b, q, r;
@@ -1120,9 +1120,9 @@ big2str_karatsuba(VALUE x, int base, char* ptr,
11201120
}
11211121

11221122
static void
1123-
calc_hbase(int base, long *hbase_p, int *hbase_numdigits_p)
1123+
calc_hbase(int base, BDIGIT *hbase_p, int *hbase_numdigits_p)
11241124
{
1125-
long hbase;
1125+
BDIGIT hbase;
11261126
int hbase_numdigits;
11271127

11281128
hbase = base;
@@ -1141,7 +1141,8 @@ rb_big2str0(VALUE x, int base, int trim)
11411141
{
11421142
int off;
11431143
VALUE ss, xx;
1144-
long n1, n2, len, hbase;
1144+
long n1, n2, len;
1145+
BDIGIT hbase;
11451146
int hbase_numdigits;
11461147
char* ptr;
11471148

0 commit comments

Comments
 (0)
0