31 Jan
2011
31 Jan
'11
11:44 a.m.
Revision: 5213 http://trac.macosforge.org/projects/ruby/changeset/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: -------------- 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; }