[macruby-changes] [989] MacRuby/branches/experimental

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 18 17:49:47 PDT 2009


Revision: 989
          http://trac.macosforge.org/projects/ruby/changeset/989
Author:   lsansonetti at apple.com
Date:     2009-03-18 17:49:46 -0700 (Wed, 18 Mar 2009)
Log Message:
-----------
really fix specials (tests coming...)

Modified Paths:
--------------
    MacRuby/branches/experimental/error.c
    MacRuby/branches/experimental/roxor.cpp

Modified: MacRuby/branches/experimental/error.c
===================================================================
--- MacRuby/branches/experimental/error.c	2009-03-18 22:48:52 UTC (rev 988)
+++ MacRuby/branches/experimental/error.c	2009-03-19 00:49:46 UTC (rev 989)
@@ -737,7 +737,7 @@
     GC_WB(&ptr[1], recv);
     GC_WB(&ptr[2], method);
 
-    return Data_Wrap_Struct(rb_cNameErrorMesg, NULL, -1, ptr);
+    return Data_Wrap_Struct(rb_cNameErrorMesg, NULL, NULL, ptr);
 }
 
 /* :nodoc: */

Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp	2009-03-18 22:48:52 UTC (rev 988)
+++ MacRuby/branches/experimental/roxor.cpp	2009-03-19 00:49:46 UTC (rev 989)
@@ -1550,7 +1550,7 @@
 	GlobalVariable *is_redefined = GET_VM()->redefined_op_gvar(sel, true);
 	new_params.push_back(new LoadInst(is_redefined, "", bb));
 
-	return CallInst::Create(opt_func, new_params.begin(), new_params.end(), "", bb);
+	return compile_protected_call(opt_func, new_params);
     }
     // #send or #__send__
     else if (sel == selSend || sel == sel__send__) {
@@ -5125,7 +5125,7 @@
 	    {
 		int index = (int)code;
 		assert(index > 0 && index < 10);
-		val = rb_reg_nth_match(index - 1, backref);
+		val = rb_reg_nth_match(index, backref);
 	    }
 	    break;
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090318/891f39fd/attachment-0001.html>


More information about the macruby-changes mailing list