Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 38183:fea5d2fd9b8a 2.4
Backport: Patch #1488312, Fix memory alignment problem on SPARC in unicode.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 15 May 2006 07:22:23 +0000 |
| parents | d8de7500291d |
| children | 30605bf95ef8 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Sat May 13 06:56:38 2006 +0000 +++ b/Objects/unicodeobject.c Mon May 15 07:22:23 2006 +0000 @@ -2302,7 +2302,7 @@ end = s + size; while (s < end) { - *p = *(Py_UNICODE *)s; + memcpy(p, s, sizeof(Py_UNICODE)); /* We have to sanity check the raw data, otherwise doom looms for some malformed UCS-4 data. */ if (
