natThread.cc (finalize_native): Remove cast.
* java/lang/natThread.cc (finalize_native): Remove cast. (_Jv_GetCurrentJNIEnv): Likewise. * include/jvm.h (struct natThread) <jni_env>: Declare as _Jv_JNIEnv*. From-SVN: r120844
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// natThread.cc - Native part of Thread class.
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2006 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2006, 2007 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -441,7 +441,7 @@ _Jv_GetCurrentJNIEnv ()
|
||||
java::lang::Thread *t = _Jv_ThreadCurrent ();
|
||||
if (t == NULL)
|
||||
return NULL;
|
||||
return (JNIEnv *)((natThread *) t->data)->jni_env;
|
||||
return ((natThread *) t->data)->jni_env;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user