[macruby-changes] [2019] MacRuby/branches/experimental/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Sat Jul 11 21:07:29 PDT 2009


Revision: 2019
          http://trac.macosforge.org/projects/ruby/changeset/2019
Author:   lsansonetti at apple.com
Date:     2009-07-11 21:07:27 -0700 (Sat, 11 Jul 2009)
Log Message:
-----------
fix a compilation warning on pre 4.2.1 gcc

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

Modified: MacRuby/branches/experimental/compiler.cpp
===================================================================
--- MacRuby/branches/experimental/compiler.cpp	2009-07-12 03:36:47 UTC (rev 2018)
+++ MacRuby/branches/experimental/compiler.cpp	2009-07-12 04:07:27 UTC (rev 2019)
@@ -6070,8 +6070,8 @@
     // Convert every incoming argument into Ruby type.
     for (int i = 0; i < arity.real; i++) {
 	Value *a = arg++;
-	if (std::find(byval_args.begin(), byval_args.end(), i + 3 + sret_i)
-		!= byval_args.end()) {
+	if (std::find(byval_args.begin(), byval_args.end(),
+		    (unsigned int)i + 3 + sret_i) != byval_args.end()) {
 	    a = new LoadInst(a, "", bb);
 	}
 	Value *ruby_arg = compile_conversion_to_ruby(arg_types[i].c_str(),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090711/b21974d6/attachment.html>


More information about the macruby-changes mailing list