Permalink
Browse files

add a workaround to avoid a gcc internal compiler error when using ru…

…by 1.9.2-p290 on ubuntu 11.10 (64bit).

(reported by Bob Saveland.)
  • Loading branch information...
1 parent 333f1be commit b0c0ebc22efc83b34ac7295691a5fc748e205049 @kubo committed Nov 4, 2011
Showing with 6 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +1 −1 ext/oci8/ocinumber.c
View
@@ -1,4 +1,9 @@
2011-11-04 KUBO Takehiro <kubo@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@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.
View
@@ -1329,7 +1329,7 @@ static VALUE onum_hash(VALUE self)
{
char *c = DATA_PTR(self);
int size = c[0] + 1;
- int i, hash;
+ long i, hash;
/* assert(size <= 22); ?*/
if (size > 22)

0 comments on commit b0c0ebc

Please sign in to comment.