[前][次][番号順一覧][スレッド一覧]

ruby-changes:16030

From: yugui <ko1@a...>
Date: Sun, 23 May 2010 22:36:27 +0900 (JST)
Subject: [ruby-changes:16030] Ruby:r27979 (ruby_1_9_1): merges r27555 from trunk into ruby_1_9_1.

yugui	2010-05-23 22:36:12 +0900 (Sun, 23 May 2010)

  New Revision: 27979

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27979

  Log:
    merges r27555 from trunk into ruby_1_9_1.
    --
    * numeric.c (fix_mul): the width of fixnum is same as long's on all
      platforms.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/numeric.c
    branches/ruby_1_9_1/version.h

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 27978)
+++ ruby_1_9_1/ChangeLog	(revision 27979)
@@ -1,3 +1,8 @@
+Fri Apr 30 03:38:14 2010  NAKAMURA Usaku  <usa@r...>
+
+	* numeric.c (fix_mul): the width of fixnum is same as long's on all
+	  platforms.
+
 Wed Aug 26 13:48:33 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
Index: ruby_1_9_1/numeric.c
===================================================================
--- ruby_1_9_1/numeric.c	(revision 27978)
+++ ruby_1_9_1/numeric.c	(revision 27979)
@@ -2132,18 +2132,18 @@
 /* avoids an optimization bug of HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005] */
 	volatile
 #endif
-	SIGNED_VALUE a, b;
-#if SIZEOF_VALUE * 2 <= SIZEOF_LONG_LONG
+	long a, b;
+#if SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
 	LONG_LONG d;
 #else
-	SIGNED_VALUE c;
+	long c;
 	VALUE r;
 #endif
 
 	a = FIX2LONG(x);
 	b = FIX2LONG(y);
 
-#if SIZEOF_VALUE * 2 <= SIZEOF_LONG_LONG
+#if SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
 	d = (LONG_LONG)a * b;
 	if (FIXABLE(d)) return LONG2FIX(d);
 	return rb_ll2inum(d);
Index: ruby_1_9_1/version.h
===================================================================
--- ruby_1_9_1/version.h	(revision 27978)
+++ ruby_1_9_1/version.h	(revision 27979)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.1"
-#define RUBY_PATCHLEVEL 424
+#define RUBY_PATCHLEVEL 425
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]