Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 21883:0a813a3ddb92 legacy-trunk
Whitespace fixes.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Wed, 06 Feb 2002 18:18:03 +0000 |
| parents | 94bac88f150f |
| children | 04cf4e13e5c9 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Wed Feb 06 18:09:02 2002 +0000 +++ b/Objects/unicodeobject.c Wed Feb 06 18:18:03 2002 +0000 @@ -1203,9 +1203,9 @@ if (cbWritten >= cbAllocated) { cbAllocated += 4 * 10; if (_PyString_Resize(&v, cbAllocated + 4)) - goto onError; + goto onError; p = PyString_AS_STRING(v) + cbWritten; - } + } if (ch < 0x10000) { /* Check for high surrogate */ @@ -1225,19 +1225,19 @@ /* Fall through: handles isolated high surrogates */ } *p++ = (char)(0xe0 | (ch >> 12)); - *p++ = (char)(0x80 | ((ch >> 6) & 0x3f)); - *p++ = (char)(0x80 | (ch & 0x3f)); + *p++ = (char)(0x80 | ((ch >> 6) & 0x3f)); + *p++ = (char)(0x80 | (ch & 0x3f)); cbWritten += 3; - } else { - *p++ = 0xf0 | (ch>>18); - *p++ = 0x80 | ((ch>>12) & 0x3f); - *p++ = 0x80 | ((ch>>6) & 0x3f); - *p++ = 0x80 | (ch & 0x3f); - cbWritten += 4; + } else { + *p++ = 0xf0 | (ch>>18); + *p++ = 0x80 | ((ch>>12) & 0x3f); + *p++ = 0x80 | ((ch>>6) & 0x3f); + *p++ = 0x80 | (ch & 0x3f); + cbWritten += 4; + } } } - } *p = '\0'; if (_PyString_Resize(&v, cbWritten)) goto onError;
