[macruby-changes] [2985] MacRuby/trunk/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 9 12:15:57 PST 2009


Revision: 2985
          http://trac.macosforge.org/projects/ruby/changeset/2985
Author:   martinlagardette at apple.com
Date:     2009-11-09 12:15:57 -0800 (Mon, 09 Nov 2009)
Log Message:
-----------

 - Minor update to correct the code syntax - no impact

Modified Paths:
--------------
    MacRuby/trunk/compiler.cpp

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2009-11-09 20:10:37 UTC (rev 2984)
+++ MacRuby/trunk/compiler.cpp	2009-11-09 20:15:57 UTC (rev 2985)
@@ -5018,7 +5018,7 @@
 		const bool is_lambda = (node_type == NODE_LAMBDA);
 		Value *caller;
 
-		if (is_lambda == 0) {
+		if (!is_lambda) {
 		    assert(node->nd_iter != NULL);
 		}
 
@@ -5032,7 +5032,7 @@
 		    params.push_back(compile_mcache((is_lambda ? selLambda : selEach), false));
 		    params.push_back(current_self);
 
-		    if (is_lambda == 0) {
+		    if (!is_lambda) {
 			// the block must not be passed to the code
 			// that generates the values we loop on
 			current_block_func = NULL;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091109/b106d9b0/attachment.html>


More information about the macruby-changes mailing list