File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -1544,8 +1544,8 @@ rb_big_remainder(x, y)
1544
1544
return bignorm (z );
1545
1545
}
1546
1546
1547
- static VALUE big_lshift _ ((VALUE , unsigned int ));
1548
- static VALUE big_rshift _ ((VALUE , unsigned int ));
1547
+ static VALUE big_lshift _ ((VALUE , unsigned long ));
1548
+ static VALUE big_rshift _ ((VALUE , unsigned long ));
1549
1549
1550
1550
static VALUE big_shift (x , n )
1551
1551
VALUE x ;
@@ -1884,11 +1884,12 @@ VALUE
1884
1884
rb_big_lshift (x , y )
1885
1885
VALUE x , y ;
1886
1886
{
1887
- int shift , neg = 0 ;
1887
+ long shift ;
1888
+ int neg = 0 ;
1888
1889
1889
1890
for (;;) {
1890
1891
if (FIXNUM_P (y )) {
1891
- shift = FIX2INT (y );
1892
+ shift = FIX2LONG (y );
1892
1893
if (shift < 0 ) {
1893
1894
neg = 1 ;
1894
1895
shift = - shift ;
@@ -1914,10 +1915,10 @@ rb_big_lshift(x, y)
1914
1915
static VALUE
1915
1916
big_lshift (x , shift )
1916
1917
VALUE x ;
1917
- unsigned int shift ;
1918
+ unsigned long shift ;
1918
1919
{
1919
1920
BDIGIT * xds , * zds ;
1920
- int s1 = shift /BITSPERDIG ;
1921
+ long s1 = shift /BITSPERDIG ;
1921
1922
int s2 = shift %BITSPERDIG ;
1922
1923
VALUE z ;
1923
1924
BDIGIT_DBL num = 0 ;
@@ -1950,12 +1951,12 @@ VALUE
1950
1951
rb_big_rshift (x , y )
1951
1952
VALUE x , y ;
1952
1953
{
1953
- int shift ;
1954
+ long shift ;
1954
1955
int neg = 0 ;
1955
1956
1956
1957
for (;;) {
1957
1958
if (FIXNUM_P (y )) {
1958
- shift = FIX2INT (y );
1959
+ shift = FIX2LONG (y );
1959
1960
if (shift < 0 ) {
1960
1961
neg = 1 ;
1961
1962
shift = - shift ;
@@ -1983,11 +1984,11 @@ rb_big_rshift(x, y)
1983
1984
static VALUE
1984
1985
big_rshift (x , shift )
1985
1986
VALUE x ;
1986
- unsigned int shift ;
1987
+ unsigned long shift ;
1987
1988
{
1988
1989
BDIGIT * xds , * zds ;
1989
1990
long s1 = shift /BITSPERDIG ;
1990
- long s2 = shift %BITSPERDIG ;
1991
+ int s2 = shift %BITSPERDIG ;
1991
1992
VALUE z ;
1992
1993
BDIGIT_DBL num = 0 ;
1993
1994
long i , j ;
Original file line number Diff line number Diff line change 1
1
#define RUBY_VERSION "1.8.6"
2
- #define RUBY_RELEASE_DATE "2007-08-22 "
2
+ #define RUBY_RELEASE_DATE "2007-09-07 "
3
3
#define RUBY_VERSION_CODE 186
4
- #define RUBY_RELEASE_CODE 20070822
5
- #define RUBY_PATCHLEVEL 89
4
+ #define RUBY_RELEASE_CODE 20070907
5
+ #define RUBY_PATCHLEVEL 90
6
6
7
7
#define RUBY_VERSION_MAJOR 1
8
8
#define RUBY_VERSION_MINOR 8
9
9
#define RUBY_VERSION_TEENY 6
10
10
#define RUBY_RELEASE_YEAR 2007
11
- #define RUBY_RELEASE_MONTH 8
12
- #define RUBY_RELEASE_DAY 22
11
+ #define RUBY_RELEASE_MONTH 9
12
+ #define RUBY_RELEASE_DAY 7
13
13
14
14
#ifdef RUBY_EXTERN
15
15
RUBY_EXTERN const char ruby_version [];
You can’t perform that action at this time.
0 commit comments