summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/bcftools-regidx-unsigned-char.patch
diff options
context:
space:
mode:
authorMarius Bakke <[email protected]>2017-08-21 02:40:37 +0200
committerMarius Bakke <[email protected]>2017-08-21 02:40:37 +0200
commit2718a9cd096d0f5ae4b23cc0814a42aee5cf3c4d (patch)
tree334bed3ef9be203d77065a75380696c2537ede92 /gnu/packages/patches/bcftools-regidx-unsigned-char.patch
parent9c4ce3afac2ad42c832dc7a9f0932744b5fd8892 (diff)
parente904de7ec1789e243e830b19187b5ef550b2eefa (diff)
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/patches/bcftools-regidx-unsigned-char.patch')
-rw-r--r--gnu/packages/patches/bcftools-regidx-unsigned-char.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/bcftools-regidx-unsigned-char.patch b/gnu/packages/patches/bcftools-regidx-unsigned-char.patch
new file mode 100644
index 0000000000..af5bc160f5
--- /dev/null
+++ b/gnu/packages/patches/bcftools-regidx-unsigned-char.patch
@@ -0,0 +1,16 @@
+Description: Fix test-regidx argument parsing on archs with unsigned char
+ On architectures where char is unsigned "c >= 0" was always true.
+Author: Adrian Bunk <[email protected]>
+Bug-Debian: https://bugs.debian.org/865060
+
+--- a/test/test-regidx.c
++++ b/test/test-regidx.c
+@@ -336,7 +336,7 @@
+ {"seed",1,0,'s'},
+ {0,0,0,0}
+ };
+- char c;
++ int c;
+ int seed = (int)time(NULL);
+ while ((c = getopt_long(argc, argv, "hvs:",loptions,NULL)) >= 0)
+ {