Package: gcin / 2.8.8+dfsg1-1

0006-Fix-FTBFS-on-mips-powerpc-s390x.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?b?IkNoYW5nWmh1byBDaGVuICjpmbPmmIzlgKwpIg==?=
 <czchen@debian.org>
Date: Wed, 15 Jun 2016 19:06:30 +0800
Subject: Fix FTBFS on mips, powerpc, s390x

 For some unknown reason, after right shifting, v is still greater than 256. It
 is possible cause by implementing right shift with rotation.
 .
 This patch just uses mask to fix v.
---
 tsa2d32.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tsa2d32.cpp b/tsa2d32.cpp
index d517b86..d0802a2 100644
--- a/tsa2d32.cpp
+++ b/tsa2d32.cpp
@@ -627,6 +627,8 @@ int main(int argc, char **argv)
       v = kk64 >> TSIN_HASH_SHIFT_64;
     }
 
+    v &= 0xff;
+
     if (v >= TSIN_HASH_N)
       p_err("error found %d", v);