summaryrefslogtreecommitdiff
path: root/debian/patches/pyhash.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/pyhash.diff')
-rw-r--r--debian/patches/pyhash.diff17
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;