[macruby-changes] [584] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 8 17:19:43 PDT 2008


Revision: 584
          http://trac.macosforge.org/projects/ruby/changeset/584
Author:   lsansonetti at apple.com
Date:     2008-09-08 17:19:43 -0700 (Mon, 08 Sep 2008)
Log Message:
-----------
fix Symbol's -[getCharacters:range]

Modified Paths:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c	2008-09-08 22:25:28 UTC (rev 583)
+++ MacRuby/trunk/string.c	2008-09-09 00:19:43 UTC (rev 584)
@@ -5246,7 +5246,7 @@
     if (range.location + range.length > RSYMBOL(rcv)->len)
 	rb_bug("[Symbol getCharacters:range:] out of bounds");
 
-    for (i = range.location; i < range.length; i++) {
+    for (i = range.location; i < range.location + range.length; i++) {
 	*buffer = RSYMBOL(rcv)->str[i];
 	buffer++;
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080908/5ef34433/attachment-0001.html 


More information about the macruby-changes mailing list