mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 12:59:50 +08:00
resolve.cc (get_ffi_type_from_signature): Handle case where boolean is an int.
* resolve.cc (get_ffi_type_from_signature): Handle case where boolean is an int. From-SVN: r31637
This commit is contained in:
parent
fa76d9e04e
commit
673fdf6d77
@ -1,3 +1,8 @@
|
||||
2000-01-26 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* resolve.cc (get_ffi_type_from_signature): Handle case where
|
||||
boolean is an int.
|
||||
|
||||
Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
|
||||
|
||||
* interpret.cc (run): Don't call println.
|
||||
|
@ -856,6 +856,16 @@ get_ffi_type_from_signature (unsigned char* ptr)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user