[macruby-changes] [1067] MacRuby/branches/experimental/roxor.cpp

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 22 15:12:02 PDT 2009


Revision: 1067
          http://trac.macosforge.org/projects/ruby/changeset/1067
Author:   vincent.isambart at gmail.com
Date:     2009-03-22 15:12:02 -0700 (Sun, 22 Mar 2009)
Log Message:
-----------
fixed the return value of if

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

Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp	2009-03-22 21:48:59 UTC (rev 1066)
+++ MacRuby/branches/experimental/roxor.cpp	2009-03-22 22:12:02 UTC (rev 1067)
@@ -2722,7 +2722,7 @@
 
 		bb = thenBB;
 		DEBUG_LEVEL_INC();
-		Value *thenVal = node->nd_body != NULL ? compile_node(node->nd_body) : trueVal;
+		Value *thenVal = node->nd_body != NULL ? compile_node(node->nd_body) : nilVal;
 		DEBUG_LEVEL_DEC();
 		thenBB = bb;
 		BranchInst::Create(mergeBB, thenBB);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090322/c0d0e144/attachment.html>


More information about the macruby-changes mailing list