ruby-changes:1864
From: ko1@a...
Date: 7 Sep 2007 13:53:23 +0900
Subject: [ruby-changes:1864] shyouhei - Ruby:r13355 (ruby_1_8_5): * bignum.c (big_lshift): make shift offset long type.
shyouhei 2007-09-07 13:53:13 +0900 (Fri, 07 Sep 2007)
New Revision: 13355
Modified files:
branches/ruby_1_8_5/ChangeLog
branches/ruby_1_8_5/bignum.c
branches/ruby_1_8_5/version.h
Log:
* bignum.c (big_lshift): make shift offset long type.
(big_rshift): ditto.
(rb_big_lshift): ditto.
(big_rshift): ditto.
[ruby-dev:31434]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_5/version.h?r1=13355&r2=13354
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_5/bignum.c?r1=13355&r2=13354
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_5/ChangeLog?r1=13355&r2=13354
Index: ruby_1_8_5/ChangeLog
===================================================================
--- ruby_1_8_5/ChangeLog (revision 13354)
+++ ruby_1_8_5/ChangeLog (revision 13355)
@@ -1,3 +1,11 @@
+Fri Sep 7 13:52:36 2007 Tanaka Akira <akr@f...>
+
+ * bignum.c (big_lshift): make shift offset long type.
+ (big_rshift): ditto.
+ (rb_big_lshift): ditto.
+ (big_rshift): ditto.
+ [ruby-dev:31434]
+
Thu Aug 16 08:44:55 2007 Nobuyoshi Nakada <nobu@r...>
* hash.c (rb_hash_delete_key): delete the entry without calling block.
Index: ruby_1_8_5/version.h
===================================================================
--- ruby_1_8_5/version.h (revision 13354)
+++ ruby_1_8_5/version.h (revision 13355)
@@ -1,15 +1,15 @@
#define RUBY_VERSION "1.8.5"
-#define RUBY_RELEASE_DATE "2007-08-16"
+#define RUBY_RELEASE_DATE "2007-09-07"
#define RUBY_VERSION_CODE 185
-#define RUBY_RELEASE_CODE 20070816
-#define RUBY_PATCHLEVEL 97
+#define RUBY_RELEASE_CODE 20070907
+#define RUBY_PATCHLEVEL 98
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 5
#define RUBY_RELEASE_YEAR 2007
-#define RUBY_RELEASE_MONTH 8
-#define RUBY_RELEASE_DAY 16
+#define RUBY_RELEASE_MONTH 9
+#define RUBY_RELEASE_DAY 7
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
Index: ruby_1_8_5/bignum.c
===================================================================
--- ruby_1_8_5/bignum.c (revision 13354)
+++ ruby_1_8_5/bignum.c (revision 13355)
@@ -1509,8 +1509,8 @@
return bignorm(z);
}
-static VALUE big_lshift _((VALUE, unsigned int));
-static VALUE big_rshift _((VALUE, unsigned int));
+static VALUE big_lshift _((VALUE, unsigned long));
+static VALUE big_rshift _((VALUE, unsigned long));
static VALUE big_shift(x, n)
VALUE x;
@@ -1847,11 +1847,12 @@
rb_big_lshift(x, y)
VALUE x, y;
{
- int shift, neg = 0;
+ long shift;
+ int neg = 0;
for (;;) {
if (FIXNUM_P(y)) {
- shift = FIX2INT(y);
+ shift = FIX2LONG(y);
if (shift < 0) {
neg = 1;
shift = -shift;
@@ -1877,10 +1878,10 @@
static VALUE
big_lshift(x, shift)
VALUE x;
- unsigned int shift;
+ unsigned long shift;
{
BDIGIT *xds, *zds;
- int s1 = shift/BITSPERDIG;
+ long s1 = shift/BITSPERDIG;
int s2 = shift%BITSPERDIG;
VALUE z;
BDIGIT_DBL num = 0;
@@ -1913,12 +1914,12 @@
rb_big_rshift(x, y)
VALUE x, y;
{
- int shift;
+ long shift;
int neg = 0;
for (;;) {
if (FIXNUM_P(y)) {
- shift = FIX2INT(y);
+ shift = FIX2LONG(y);
if (shift < 0) {
neg = 1;
shift = -shift;
@@ -1946,11 +1947,11 @@
static VALUE
big_rshift(x, shift)
VALUE x;
- unsigned int shift;
+ unsigned long shift;
{
BDIGIT *xds, *zds;
long s1 = shift/BITSPERDIG;
- long s2 = shift%BITSPERDIG;
+ int s2 = shift%BITSPERDIG;
VALUE z;
BDIGIT_DBL num = 0;
long i, j;
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml