Revision
5213
Author
vincent.isambart@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

Diff

Modified: MacRuby/trunk/string.c (5212 => 5213)


--- 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;
 }