[svn:parrot] r45738 - branches/immutable_strings_part1/src/string/encoding
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat Apr 17 10:01:58 UTC 2010
Author: bacek
Date: Sat Apr 17 10:01:57 2010
New Revision: 45738
URL: https://trac.parrot.org/parrot/changeset/45738
Log:
Un-consting iterator
Modified:
branches/immutable_strings_part1/src/string/encoding/ucs2.c
Modified: branches/immutable_strings_part1/src/string/encoding/ucs2.c
==============================================================================
--- branches/immutable_strings_part1/src/string/encoding/ucs2.c Sat Apr 17 05:38:56 2010 (r45737)
+++ branches/immutable_strings_part1/src/string/encoding/ucs2.c Sat Apr 17 10:01:57 2010 (r45738)
@@ -494,9 +494,9 @@
ASSERT_ARGS(ucs2_encode_and_advance)
#if PARROT_HAS_ICU
- const UChar * const s = (const UChar*) i->str->strstart;
+ UChar *s = (const UChar*) i->str->strstart;
UINTVAL pos = i->bytepos / sizeof (UChar);
- s[pos++] = (UChar)c;
+ s[pos++] = (UChar)c;
i->charpos++;
i->bytepos = pos * sizeof (UChar);
#else
More information about the parrot-commits
mailing list