Revision: 4168 http://trac.macosforge.org/projects/ruby/changeset/4168 Author: lsansonetti@apple.com Date: 2010-05-26 16:38:25 -0700 (Wed, 26 May 2010) Log Message: ----------- fix kernel primitives using SEL to use void pointers instead, to conform to the code the compiler will generate Modified Paths: -------------- MacRuby/trunk/kernel.c Modified: MacRuby/trunk/kernel.c =================================================================== --- MacRuby/trunk/kernel.c 2010-05-26 23:14:14 UTC (rev 4167) +++ MacRuby/trunk/kernel.c 2010-05-26 23:38:25 UTC (rev 4168) @@ -533,9 +533,9 @@ } inline VALUE -vm_sel_to_rval(SEL sel) +vm_sel_to_rval(void *sel) { - return sel == 0 ? Qnil : ID2SYM(rb_intern(sel_getName(sel))); + return sel == 0 ? Qnil : ID2SYM(rb_intern(sel_getName((SEL)sel))); } inline VALUE @@ -581,10 +581,10 @@ } inline void -vm_rval_to_sel(VALUE rval, SEL *ocval) +vm_rval_to_sel(VALUE rval, void **ocval) { const char *cstr = rval_to_c_str(rval); - *ocval = cstr == NULL ? NULL : sel_registerName(cstr); + *(SEL *)ocval = cstr == NULL ? NULL : sel_registerName(cstr); } inline void
participants (1)
-
source_changes@macosforge.org