diff --git a/src/jnienv.cpp b/src/jnienv.cpp index 15631e51e4..9d73a233df 100644 --- a/src/jnienv.cpp +++ b/src/jnienv.cpp @@ -3186,7 +3186,7 @@ jobject JNICALL ToReflectedMethod(Thread* t, jclass c, jmethodID method, jboolean isStatic) { uintptr_t arguments[] = { reinterpret_cast(c), - reinterpret_cast(method), + static_cast(method), static_cast(isStatic) }; return reinterpret_cast(run(t, toReflectedMethod, arguments)); @@ -3224,7 +3224,7 @@ jobject JNICALL ToReflectedField(Thread* t, jclass c, jfieldID field, jboolean isStatic) { uintptr_t arguments[] = { reinterpret_cast(c), - reinterpret_cast(field), + static_cast(field), static_cast(isStatic) }; return reinterpret_cast(run(t, toReflectedField, arguments));