860938 wrote:Without having actually tried the code my first guess would be that this is not your problem.
JNIEXPORT jdouble JNICALL Java_Test_getDouble(JNIEnv *env, jclass unused, jlong v)
double d = -2.71000;
When Test.getDouble() is called in java, NaN is returned.
Can someone tell me what is going on here and how can I fixed it?