Patch: FYI: jni.cc fixes
Ulrich Weigand
weigand@immd1.informatik.uni-erlangen.de
Mon Nov 4 13:11:00 GMT 2002
Tom Tromey wrote:
>+ JvAssert (sizeof (int) >= sizeof (jint));
>+ JvAssert (sizeof (jlong) >= sizeof (int));
>+ JvAssert (sizeof (float) >= sizeof (jfloat));
>+ JvAssert (sizeof (double) >= sizeof (jdouble));
Well, these assumptions hold on s390/s390x.
Though I'm not sure exactly why the sizeof (float) >=
sizeof (jfloat) is necessary; shouldn't this be rather
sizeof (double) >= sizeof (jfloat)? What you want to
check is that both jfloat and jdouble are equal to either
float or double (both of which are passed as double).
In any case, you didn't actually change the broken va_arg,
did you?
Bye,
Ulrich
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de
More information about the Java-patches
mailing list