* bignum.c (big_lshift, big_rshift): return Bignum always without
normalization. [ruby-dev:38680] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3afd3c7b77
commit
0f699af36e
|
@ -1,3 +1,8 @@
|
|||
Fri Jun 19 08:14:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* bignum.c (big_lshift, big_rshift): return Bignum always withou
|
||||
normalization. [ruby-dev:38680]
|
||||
|
||||
Wed Jun 17 07:44:27 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/webrick/httputils.rb (parse_form_data): escape boundary of
|
||||
|
|
12
bignum.c
12
bignum.c
|
@ -2042,8 +2042,8 @@ rb_big_lshift(x, y)
|
|||
y = rb_to_int(y);
|
||||
}
|
||||
|
||||
if (neg) return big_rshift(x, shift);
|
||||
return big_lshift(x, shift);
|
||||
x = neg ? big_rshift(x, shift) : big_lshift(x, shift);
|
||||
return bignorm(x);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
@ -2071,7 +2071,7 @@ big_lshift(x, shift)
|
|||
num = BIGDN(num);
|
||||
}
|
||||
*zds = BIGLO(num);
|
||||
return bignorm(z);
|
||||
return z;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2111,8 +2111,8 @@ rb_big_rshift(x, y)
|
|||
y = rb_to_int(y);
|
||||
}
|
||||
|
||||
if (neg) return big_lshift(x, shift);
|
||||
return big_rshift(x, shift);
|
||||
x = neg ? big_lshift(x, shift) : big_rshift(x, shift);
|
||||
return bignorm(x);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
@ -2157,7 +2157,7 @@ big_rshift(x, shift)
|
|||
if (!RBIGNUM(x)->sign) {
|
||||
get2comp(z);
|
||||
}
|
||||
return bignorm(z);
|
||||
return z;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.8.8"
|
||||
#define RUBY_RELEASE_DATE "2009-06-17"
|
||||
#define RUBY_RELEASE_DATE "2009-06-19"
|
||||
#define RUBY_VERSION_CODE 188
|
||||
#define RUBY_RELEASE_CODE 20090617
|
||||
#define RUBY_RELEASE_CODE 20090619
|
||||
#define RUBY_PATCHLEVEL -1
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 8
|
||||
#define RUBY_RELEASE_YEAR 2009
|
||||
#define RUBY_RELEASE_MONTH 6
|
||||
#define RUBY_RELEASE_DAY 17
|
||||
#define RUBY_RELEASE_DAY 19
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Reference in New Issue