[ruby-oci8-commit] [463] trunk/ruby-oci8: add a workaround to avoid a gcc internal compiler error when using ruby 1. 9.2-p290 on ubuntu 11.10 (64bit).

nobody at rubyforge.org nobody at rubyforge.org
Fri Nov 4 07:57:58 EDT 2011


Revision: 463
Author:   kubo
Date:     2011-11-04 07:57:58 -0400 (Fri, 04 Nov 2011)

Log Message:
-----------
add a workaround to avoid a gcc internal compiler error when using ruby 1.9.2-p290 on ubuntu 11.10 (64bit).
(reported by Bob Saveland.)

Modified Paths:
--------------
    trunk/ruby-oci8/ChangeLog
    trunk/ruby-oci8/ext/oci8/ocinumber.c

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2011-11-04 11:32:18 UTC (rev 462)
+++ trunk/ruby-oci8/ChangeLog	2011-11-04 11:57:58 UTC (rev 463)
@@ -1,4 +1,9 @@
 2011-11-04  KUBO Takehiro  <kubo at jiubao.org>
+	* ext/oci8/ocinumber.c: add a workaround to avoid a gcc internal
+	    compiler error when using ruby 1.9.2-p290 on ubuntu 11.10 (64bit).
+	    (reported by Bob Saveland.)
+
+2011-11-04  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/extconf.rb, ext/oci8/oci8.c, ext/oci8/oci8.h,
 	  test/test_datetime.rb, test/test_metadata.rb: fix to pass tests
 	    on Oracle 9i.

Modified: trunk/ruby-oci8/ext/oci8/ocinumber.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/ocinumber.c	2011-11-04 11:32:18 UTC (rev 462)
+++ trunk/ruby-oci8/ext/oci8/ocinumber.c	2011-11-04 11:57:58 UTC (rev 463)
@@ -1329,7 +1329,7 @@
 {
     char *c  = DATA_PTR(self);
     int size = c[0] + 1;
-    int i, hash;
+    long i, hash;
 
     /* assert(size <= 22); ?*/
     if (size > 22)




More information about the ruby-oci8-commit mailing list