[svn:parrot] r46805 - branches/ucs4_encoding/src/string/encoding
darbelo at svn.parrot.org
darbelo at svn.parrot.org
Thu May 20 00:03:29 UTC 2010
Author: darbelo
Date: Thu May 20 00:03:28 2010
New Revision: 46805
URL: https://trac.parrot.org/parrot/changeset/46805
Log:
Fix typos that got lost in the git-svn merge.
Modified:
branches/ucs4_encoding/src/string/encoding/ucs4.c
Modified: branches/ucs4_encoding/src/string/encoding/ucs4.c
==============================================================================
--- branches/ucs4_encoding/src/string/encoding/ucs4.c Wed May 19 23:44:00 2010 (r46804)
+++ branches/ucs4_encoding/src/string/encoding/ucs4.c Thu May 20 00:03:28 2010 (r46805)
@@ -198,8 +198,8 @@
Parrot_ucs4_encoding_ptr, Parrot_unicode_charset_ptr, 0);
UChar32 *buf = (UChar32 *) res->strstart;
UINTVAL offs;
- for ( offs = 0; offs < len, offs++ ){
- buf[offs] = src->encoding->get_codepoints(interp, src, offs);
+ for ( offs = 0; offs < len; offs++ ){
+ buf[offs] = src->encoding->get_codepoint(interp, src, offs);
};
return res;
@@ -437,8 +437,8 @@
{
ASSERT_ARGS(ucs4_encode_and_advance)
#if PARROT_HAS_ICU
- const UChar32 * const s = (const UChar32 *) i->str->strstart;
- size_t pos = i->bytepos / sizeof (UChar32);
+ UChar32 *s = (UChar32 *) i->str->strstart;
+ size_t pos = i->bytepos / sizeof (UChar32);
s[pos++] = (UChar32) c;
++i->charpos;
i->bytepos = pos * sizeof (UChar32);
More information about the parrot-commits
mailing list