Opened 11 years ago

Last modified 11 years ago

#218 new defect

define jbyte as signed char — at Version 1

Reported by: Yuri Dario Owned by:
Priority: major Milestone: GA6
Component: general Version: 1.6.0 Build 27 GA5
Severity: high Keywords:
Cc:

Description (last modified by dmik)

In the OS/2 sdk, jni_mh.h defines the following types:

#ifdef __GNUC__
typedef int jint;
typedef __int64_t jlong;
typedef char jbyte;
#else
typedef long jint;
typedef __int64 jlong;
typedef signed char jbyte;
#endif

but the GNUC defines are different from default ones on other platforms.

When building Apache OpenOffice, errors are issued because there isn't a direct cast from signed char to char, even if signed char is the default setting (they are treated as different types).

Change History (1)

comment:1 by dmik, 11 years ago

Description: modified (diff)

Corrected your description. It contained a wrong excerpt, probably the one you have already fixed (instead of the original one). Also, please don't forget to use and when pasting code samples here, otherwise formatting gets broken.

Note: See TracTickets for help on using tickets.