From 34c5f184ed011ba92d384994513d923d0e7e2e40 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Thu, 25 Oct 2007 16:34:40 -0600 Subject: [PATCH] Fix static cast to make gcc happy --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index db062ae8df..323a2cac62 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -63,8 +63,9 @@ main(int ac, const char** av) } JavaVM* vm; - JNIEnv* e; - JNI_CreateJavaVM(&vm, reinterpret_cast(&e), &vmArgs); + void* env; + JNI_CreateJavaVM(&vm, &env, &vmArgs); + JNIEnv* e = static_cast(env); jclass c = e->FindClass(class_); if (not e->ExceptionOccurred()) {