[macruby-changes] [4168] MacRuby/trunk/kernel.c

source_changes at macosforge.org source_changes at macosforge.org
Wed May 26 16:38:28 PDT 2010


Revision: 4168
          http://trac.macosforge.org/projects/ruby/changeset/4168
Author:   lsansonetti at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100526/6950d67d/attachment.html>


More information about the macruby-changes mailing list