Fix static cast to make gcc happy

This commit is contained in:
Eric Scharff 2007-10-25 16:34:40 -06:00
parent 95621ac2d0
commit 34c5f184ed

View File

@ -63,8 +63,9 @@ main(int ac, const char** av)
}
JavaVM* vm;
JNIEnv* e;
JNI_CreateJavaVM(&vm, reinterpret_cast<void**>(&e), &vmArgs);
void* env;
JNI_CreateJavaVM(&vm, &env, &vmArgs);
JNIEnv* e = static_cast<JNIEnv*>(env);
jclass c = e->FindClass(class_);
if (not e->ExceptionOccurred()) {