Control: tags -1 patch

The attached patch fixes test-regidx on architectures where char
is unsigned.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

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 <b...@debian.org>
Bug-Debian: https://bugs.debian.org/865060

--- bcftools-1.4.1.orig/test/test-regidx.c
+++ bcftools-1.4.1/test/test-regidx.c
@@ -336,7 +336,7 @@ int main(int argc, char **argv)
         {"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) 
     {

Reply via email to