Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 38182:d8355cccff4a legacy-trunk
Patch #1488312, Fix memory alignment problem on SPARC in unicode. Will backport
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 15 May 2006 07:17:23 +0000 |
| parents | d8b23ba4a274 |
| children | 7e16fcce34a1 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Mon May 15 07:04:36 2006 +0000 +++ b/Objects/unicodeobject.c Mon May 15 07:17:23 2006 +0000 @@ -2313,7 +2313,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 (
