Merge "Cast ApkAssets to uintptr_t before jlong" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-10 20:31:06 +00:00
committed by Android (Google) Code Review

View File

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