changeset 5825:f371d9a1496f

8007748: MacOSX build error : cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead Reviewed-by: anthony
author prr
date Tue, 12 Feb 2013 09:58:21 -0800
parents a13cb8924de8
children 1ea1197801d1
files src/macosx/native/jobjc/src/core/native/SEL.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/jobjc/src/core/native/SEL.m	Sun Dec 09 07:43:12 2012 -0800
+++ b/src/macosx/native/jobjc/src/core/native/SEL.m	Tue Feb 12 09:58:21 2013 -0800
@@ -34,7 +34,7 @@
     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