[macruby-changes] [5213] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 31 03:44:29 PST 2011
Revision: 5213
http://trac.macosforge.org/projects/ruby/changeset/5213
Author: vincent.isambart at gmail.com
Date: 2011-01-31 03:44:27 -0800 (Mon, 31 Jan 2011)
Log Message:
-----------
fix String#setbyte not invalidating the flags
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c 2011-01-31 11:02:55 UTC (rev 5212)
+++ MacRuby/trunk/string.c 2011-01-31 11:44:27 UTC (rev 5213)
@@ -1955,6 +1955,7 @@
if (index < 0) {
index += RSTR(self)->length_in_bytes;
}
+ str_reset_flags(RSTR(self));
RSTR(self)->bytes[index] = byte;
return value;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110131/827bafc6/attachment.html>
More information about the macruby-changes
mailing list