]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix compression on Big Endian CPUs 84/head 85/head
authorPeter Harris <pharris@opentext.com>
Tue, 1 Dec 2015 19:58:24 +0000 (14:58 -0500)
committerPeter Harris <pharris@opentext.com>
Tue, 1 Dec 2015 19:58:24 +0000 (14:58 -0500)
lib/zstd_compress.c

index 5ca4437f9078261a9cfce5f6c16f228ad0ef3644..8c30b8a69ae823642484a3d178d43c38b60cbcfc 100644 (file)
@@ -620,7 +620,7 @@ static unsigned ZSTD_NbCommonBytes (register size_t val)
     }
     else   /* Big Endian CPU */
     {
-        if (MEM_32bits())
+        if (MEM_64bits())
         {
 #       if defined(_MSC_VER) && defined(_WIN64)
             unsigned long r = 0;