summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2020-03-09 14:08:50 +0100
committerGitHub <noreply@github.com>2020-03-09 14:08:50 +0100
commit4aecc6b3465411d99dbd94e89c1bb3eb371d6fa6 (patch)
treece2eb67f1d389e968cdb1e72b9be19d105a5a03b /lib
parentdc94c81cb0807dbb5cf60c782baa916bbd8458ed (diff)
downloadNim-4aecc6b3465411d99dbd94e89c1bb3eb371d6fa6.tar.gz
fix #12508, unaligned access on sparc64 (#13594)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/hashes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/hashes.nim b/lib/pure/hashes.nim
index 52a724d7b..d799fb062 100644
--- a/lib/pure/hashes.nim
+++ b/lib/pure/hashes.nim
@@ -162,7 +162,7 @@ proc murmurHash(x: openArray[byte]): Hash =
   # body
   while i < n * stepSize:
     var k1: uint32
-    when defined(js):
+    when defined(js) or defined(sparc) or defined(sparc64):
       var j = stepSize
       while j > 0:
         dec j