[macruby-changes] [123] MacRuby/trunk/ruby.c
source_changes at macosforge.org
source_changes at macosforge.org
Sat Mar 29 12:03:15 PDT 2008
Revision: 123
http://trac.macosforge.org/projects/ruby/changeset/123
Author: lsansonetti at apple.com
Date: 2008-03-29 12:03:13 -0700 (Sat, 29 Mar 2008)
Log Message:
-----------
fixed a regression in sflag parsing
Modified Paths:
--------------
MacRuby/trunk/ruby.c
Modified: MacRuby/trunk/ruby.c
===================================================================
--- MacRuby/trunk/ruby.c 2008-03-29 05:20:07 UTC (rev 122)
+++ MacRuby/trunk/ruby.c 2008-03-29 19:03:13 UTC (rev 123)
@@ -467,8 +467,9 @@
VALUE argv = rb_argv;
n = RARRAY_LEN(argv);
- for (i = 0; i < n; i++) {
- VALUE v = RARRAY_AT(argv, i);
+ i = 0;
+ while (n > 0) {
+ VALUE v = RARRAY_AT(argv, i++);
char *s = StringValuePtr(v);
char *p;
int hyphen = Qfalse;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080329/c9051105/attachment.html
More information about the macruby-changes
mailing list