[macruby-changes] [1878] MacRuby/branches/experimental/proc.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 18 13:18:30 PDT 2009


Revision: 1878
          http://trac.macosforge.org/projects/ruby/changeset/1878
Author:   lsansonetti at apple.com
Date:     2009-06-18 13:18:30 -0700 (Thu, 18 Jun 2009)
Log Message:
-----------
Proc#binding: use the block self variable and not the Proc as the binding self variable

Modified Paths:
--------------
    MacRuby/branches/experimental/proc.c

Modified: MacRuby/branches/experimental/proc.c
===================================================================
--- MacRuby/branches/experimental/proc.c	2009-06-18 20:13:14 UTC (rev 1877)
+++ MacRuby/branches/experimental/proc.c	2009-06-18 20:18:30 UTC (rev 1878)
@@ -1426,7 +1426,7 @@
     rb_vm_binding_t *binding = (rb_vm_binding_t *)xmalloc(
 	    sizeof(rb_vm_binding_t));
 
-    GC_WB(&binding->self, self);
+    GC_WB(&binding->self, block->self);
     GC_WB(&binding->locals, block->locals);
 
     return Data_Wrap_Struct(rb_cBinding, NULL, NULL, binding);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090618/ecb1cef6/attachment.html>


More information about the macruby-changes mailing list