mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86d1fc8863
commit
906c8788b9
1 changed files with 3 additions and 3 deletions
6
bignum.c
6
bignum.c
|
@ -425,9 +425,9 @@ bary_small_rshift(BDIGIT *zds, const BDIGIT *xds, size_t n, int shift, BDIGIT hi
|
||||||
|
|
||||||
num = BIGUP(higher_bdigit);
|
num = BIGUP(higher_bdigit);
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
BDIGIT x = xds[n - i - 1];
|
BDIGIT x = xds[n - i - 1];
|
||||||
num = (num | x) >> shift;
|
num = (num | x) >> shift;
|
||||||
zds[n - i - 1] = BIGLO(num);
|
zds[n - i - 1] = BIGLO(num);
|
||||||
num = BIGUP(x);
|
num = BIGUP(x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5106,7 +5106,7 @@ big2ulong(VALUE x, const char *type)
|
||||||
num = 0;
|
num = 0;
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
num <<= BITSPERDIG;
|
num <<= BITSPERDIG;
|
||||||
num += (unsigned long)ds[len - i - 1]; /* overflow is already checked */
|
num += (unsigned long)ds[len - i - 1]; /* overflow is already checked */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return num;
|
return num;
|
||||||
|
|
Loading…
Reference in a new issue