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

source_changes at macosforge.org source_changes at macosforge.org
Mon May 4 18:56:18 PDT 2009


Revision: 1532
          http://trac.macosforge.org/projects/ruby/changeset/1532
Author:   lsansonetti at apple.com
Date:     2009-05-04 18:56:17 -0700 (Mon, 04 May 2009)
Log Message:
-----------
fixed format with no arg

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

Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp	2009-05-05 01:27:37 UTC (rev 1531)
+++ MacRuby/branches/experimental/roxor.cpp	2009-05-05 01:56:17 UTC (rev 1532)
@@ -10060,6 +10060,10 @@
 VALUE
 rb_str_format(int argc, const VALUE *argv, VALUE fmt)
 {
+    if (argc == 0) {
+	return fmt;
+    }
+
     char *new_fmt = NULL;
     std::string types("@@@@");
     get_types_for_format_str(types, (unsigned int)argc, (VALUE *)argv, 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090504/345891b7/attachment.html>


More information about the macruby-changes mailing list