[macruby-changes] [5116] MacRuby/trunk/encoding.h

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 4 21:49:09 PST 2011


Revision: 5116
          http://trac.macosforge.org/projects/ruby/changeset/5116
Author:   lsansonetti at apple.com
Date:     2011-01-04 21:49:05 -0800 (Tue, 04 Jan 2011)
Log Message:
-----------
no c99 in headers used by C extensions

Modified Paths:
--------------
    MacRuby/trunk/encoding.h

Modified: MacRuby/trunk/encoding.h
===================================================================
--- MacRuby/trunk/encoding.h	2011-01-05 05:26:37 UTC (rev 5115)
+++ MacRuby/trunk/encoding.h	2011-01-05 05:49:05 UTC (rev 5116)
@@ -316,7 +316,8 @@
 	if (rstr->encoding->ascii_compatible && str_is_ascii_only(rstr)
 		&& rstr->length_in_bytes < STR_UCHARS_STATIC_BUFSIZE) {
 	    // Fast path.
-	    for (long i = 0; i < rstr->length_in_bytes; i++) {
+	    long i;
+	    for (i = 0; i < rstr->length_in_bytes; i++) {
 		buf->static_buf[i] = rstr->bytes[i];
 	    }
 	    buf->chars = buf->static_buf;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110104/f9ac950e/attachment.html>


More information about the macruby-changes mailing list