This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: jni.cc fixes


>>>>> "Ulrich" == Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de> writes:

Ulrich> Though I'm not sure exactly why the sizeof (float) >= 
Ulrich> sizeof (jfloat) is necessary; shouldn't this be rather 
Ulrich> sizeof (double) >= sizeof (jfloat)?  What you want to 
Ulrich> check is that both jfloat and jdouble are equal to either 
Ulrich> float or double (both of which are passed as double).

Yeah, thanks.

Ulrich> In any case, you didn't actually change the broken va_arg,
Ulrich> did you?

Oops.
It looks like:

      else if (arg_elts[i] == JvPrimClass (long))
	values[i].j = (jlong) va_arg (vargs, jlong);

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]