Fix signed issue. master
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 Mar 2018 12:39:47 +0000 (13:39 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 Mar 2018 12:39:47 +0000 (13:39 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TD5/C/exemple_mysql_libmysqlclient.c

index 9dcc636bfe608b265fb7e72fd5a3db8a98e2f348..452ec3216a829d770843c1c0db600063b6ec8161 100644 (file)
@@ -57,8 +57,8 @@ int main(void)
                exit(1);
        }
 
-       int num_fields = mysql_num_fields(result);
-       int i;
+       unsigned int num_fields = mysql_num_fields(result);
+       unsigned int i;
 
        printf("\nTable Usine :\n");
        printf("NU\tNomU\tVille\n");