summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/bcftools-regidx-unsigned-char.patch
blob: af5bc160f59916ab4a883c125c8712adc17f4f09 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 <bunk@debian.org>
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) 
     {