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

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 21 14:10:07 PDT 2009


Revision: 1437
          http://trac.macosforge.org/projects/ruby/changeset/1437
Author:   lsansonetti at apple.com
Date:     2009-04-21 14:10:07 -0700 (Tue, 21 Apr 2009)
Log Message:
-----------
fixing a compilation problem with GCC 4.2.1

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

Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp	2009-04-21 08:03:08 UTC (rev 1436)
+++ MacRuby/branches/experimental/roxor.cpp	2009-04-21 21:10:07 UTC (rev 1437)
@@ -4996,9 +4996,11 @@
 	    return nilVal;
 
 	case _C_BOOL:
-	    Value *is_true = new ICmpInst(ICmpInst::ICMP_EQ, val,
-		    ConstantInt::get(Type::Int8Ty, 1), "", bb);
-	    return SelectInst::Create(is_true, trueVal, falseVal, "", bb);
+	    {
+		Value *is_true = new ICmpInst(ICmpInst::ICMP_EQ, val,
+			ConstantInt::get(Type::Int8Ty, 1), "", bb);
+		return SelectInst::Create(is_true, trueVal, falseVal, "", bb);
+	    }
 
 	case _C_ID:
 	case _C_CLASS:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090421/41743c15/attachment.html>


More information about the macruby-changes mailing list