[svn:parrot] r46830 - branches/ucs4_encoding/src/string/encoding
darbelo at svn.parrot.org
darbelo at svn.parrot.org
Thu May 20 21:16:25 UTC 2010
Author: darbelo
Date: Thu May 20 21:16:25 2010
New Revision: 46830
URL: https://trac.parrot.org/parrot/changeset/46830
Log:
[CAGE] Shuffle whitespace about to make codetest happy.
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 Thu May 20 21:05:55 2010 (r46829)
+++ branches/ucs4_encoding/src/string/encoding/ucs4.c Thu May 20 21:16:25 2010 (r46830)
@@ -198,7 +198,7 @@
Parrot_ucs4_encoding_ptr, Parrot_unicode_charset_ptr, 0);
UChar32 *buf = (UChar32 *) res->strstart;
UINTVAL offs;
- for ( offs = 0; offs < len; offs++ ){
+ for (offs = 0; offs < len; offs++){
buf[offs] = src->encoding->get_codepoint(interp, src, offs);
};
res->strlen = len;
@@ -471,7 +471,7 @@
const UChar32 *pos = (const UChar32*) s->strstart;
UINTVAL len = s->strlen;
UNUSED(interp);
-
+
while (len--) {
hashval += hashval << 5;
hashval += *(pos++);
More information about the parrot-commits
mailing list