Patch: fixlet in resolve.cc
Tom Tromey
tromey@cygnus.com
Wed Jan 26 15:44:00 GMT 2000
I'm checking in this fix to resolve.cc.
2000-01-26 Tom Tromey <tromey@cygnus.com>
* resolve.cc (get_ffi_type_from_signature): Handle case where
boolean is an int.
Tom
Index: resolve.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/resolve.cc,v
retrieving revision 1.9
diff -u -r1.9 resolve.cc
--- resolve.cc 2000/01/20 17:32:26 1.9
+++ resolve.cc 2000/01/26 23:43:35
@@ -856,6 +856,16 @@
break;
case 'Z':
+ // On some platforms a bool is a byte, on others an int.
+ if (sizeof (jboolean) == sizeof (jbyte))
+ return &ffi_type_sint8;
+ else
+ {
+ JvAssert (sizeof (jbyte) == sizeof (jint));
+ return &ffi_type_sint32;
+ }
+ break;
+
case 'B':
return &ffi_type_sint8;
break;
More information about the Java-patches
mailing list