changed type of ni_gainlkup to get rid of compiler's overflow warnings
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 7 Oct 2001 20:39:13 +0000 (20:39 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 7 Oct 2001 20:39:13 +0000 (20:39 +0000)
comedi/drivers/ni_mio_common.c

index e4573f7bd3fdde7c41fce616cc656247e66c4a95..e9815ca59f021dfebbed2b646cd70023876651fe 100644 (file)
@@ -86,7 +86,7 @@
 static short ni_modebits1[4]={ 0x3000, 0x2000, 0x1000, 0 };
 static short ni_modebits2[4]={ 0x3f, 0x3f, 0x37, 0x37 };
 
-static char ni_gainlkup[][16]={
+static unsigned int ni_gainlkup[][16]={
        { 0, 1, 2, 3, 4, 5, 6, 7, 0x100, 0x101, 0x102, 0x103, 0x104, 0x105,
                0x106, 0x107 },
        { 1, 2, 4, 7, 0x101, 0x102, 0x104, 0x107 },