[PATCH] Fix gcjh handling of most negative int/longs
Andrew Haley
aph@redhat.com
Tue May 23 13:09:00 GMT 2006
Andrew Haley writes:
> Jakub Jelinek writes:
>
> > On 64-bit hosts jint type is apparently 64-bit
>
> No.
>
> > (javaop.h has
> > #ifndef int32
> > #define int32 long
> > #endif
> > ...
> > typedef int32 jint;
>
> That's right. jint is 32 bit, always.
Or rather, it's right as long as int32 is defined: if it isn't, that's
the real cause of the bug.
Andrew.
More information about the Gcc-patches
mailing list