diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-09-29 13:40:02 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-09-29 13:40:02 +0300 |
commit | 424a50000a78fff715de4417dba9b4498aeeee4c (patch) | |
tree | d27f003c7d140fef24efd1b2ca1325ae099154b9 /debian/patches/pyhash.diff | |
download | python3.5-debian.tar.gz |
Imported python3.5 3.5.4-4debian/3.5.4-4debian
Diffstat (limited to 'debian/patches/pyhash.diff')
-rw-r--r-- | debian/patches/pyhash.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/pyhash.diff b/debian/patches/pyhash.diff new file mode 100644 index 0000000..b9eec8b --- /dev/null +++ b/debian/patches/pyhash.diff @@ -0,0 +1,17 @@ +Index: b/Python/pyhash.c +=================================================================== +--- a/Python/pyhash.c ++++ b/Python/pyhash.c +@@ -384,7 +384,12 @@ siphash24(const void *src, Py_ssize_t sr + PY_UINT8_T *m; + + while (src_sz >= 8) { ++#if defined(__ARM_EABI__) && defined(__ARMEL__) ++ PY_UINT64_T mi; ++ memcpy(&mi, in, sizeof(PY_UINT64_T)); ++#else + PY_UINT64_T mi = _le64toh(*in); ++#endif + in += 1; + src_sz -= 8; + v3 ^= mi; |