Revert "Cast ApkAssets to uintptr_t before jlong"

This reverts commit 1d46f4f2dd.

Reason for revert: Did not fix b/159041693

Change-Id: Ie06232a06027a29ccd2e71ae866200f2e9216cbe
This commit is contained in:
Ryan Mitchell
2021-03-05 22:31:11 +00:00
parent 1d46f4f2dd
commit 51bdb3669a

View File

@@ -354,7 +354,7 @@ static void NativeDestroy(void* ptr) {
}
static jlong NativeGetFinalizer(JNIEnv* /*env*/, jclass /*clazz*/) {
return static_cast<jlong>(reinterpret_cast<uintptr_t>(&NativeDestroy));
return reinterpret_cast<jlong>(&NativeDestroy);
}
static jstring NativeGetAssetPath(JNIEnv* env, jclass /*clazz*/, jlong ptr) {