Package: staden-io-lib / 1.14.11-6

1b28b6a.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
27
From: James Bonfield <jkb@sanger.ac.uk>
Date: Thu, 6 Dec 2018 12:23:53 +0000
Origin: https://github.com/jkbonfield/io_lib/commit/1b28b6a.patch
Bug-Debian: https://bugs.debian.org/915460
Subject: [PATCH] Fix rANS codec on x32 architecture.

This is 32-bit usage of a 64-bit processor.  See
https://wiki.debian.org/X32Port
Should fix the bug found here:
https://buildd.debian.org/status/fetch.php?pkg=staden-io-lib&arch=x32&ver=1.14.11-3&stamp=1543952038&raw=0
---
 io_lib/rANS_static.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_lib/rANS_static.c b/io_lib/rANS_static.c
index 4cd6264..e2f64a2 100644
--- a/io_lib/rANS_static.c
+++ b/io_lib/rANS_static.c
@@ -339,7 +339,7 @@ static inline void RansDecAdvanceSymbolStep(RansState* r, RansDecSymbol const* s
 }
 
 // Renormalize.
-#ifdef __x86_64
+#if defined(__x86_64) && !defined(__ILP32__)
 /*
  * Assembly variants of the RansDecRenorm code.
  * These are based on joint ideas from Rob Davies and from looking at