summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-18 23:14:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-18 23:14:27 +0000
commit0f699af36e8b30cbc08745bc939b0efd99371319 (patch)
tree8dd36899fc2fcc806694f30b6af13eb9a5b5e539
parent3afd3c7b779fa257f8b01815f81ad70a882761e7 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--bignum.c12
-rw-r--r--version.h6
3 files changed, 14 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 7f7f6b06f0..1a6d1a8c96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/bignum.c b/bignum.c
index 6a97456ff6..473381b215 100644
--- a/bignum.c
+++ b/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;
}
/*
diff --git a/version.h b/version.h
index 8b72e1625e..17a8b9dc5d 100644
--- a/version.h
+++ b/version.h
@@ -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[];