mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-22 16:26:05 +00:00
8007748: MacOSX build error : cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead
Reviewed-by: anthony
This commit is contained in:
parent
c3e1c6d07b
commit
7ca3c9dd84
@ -34,7 +34,7 @@ JNIEXPORT jlong JNICALL Java_com_apple_jobjc_SEL_getSelectorPtr
|
||||
const char *selNameAsChars = (*env)->GetStringUTFChars(env, selName, JNI_FALSE);
|
||||
const SEL sel = sel_registerName(selNameAsChars);
|
||||
(*env)->ReleaseStringUTFChars(env, selName, selNameAsChars);
|
||||
return ptr_to_jlong(sel);
|
||||
return ptr_to_jlong((void*)sel);
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL Java_com_apple_jobjc_SEL_getSelectorName
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user