]> granicus.if.org Git - graphviz/commitdiff
edgepaint: fix type of variable for interacting with getopt
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Apr 2021 02:08:52 +0000 (19:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 May 2021 04:45:47 +0000 (21:45 -0700)
Similar to 49fd8f62d8103d6e40a33922d2492a5ec3e3e76e, this location was using an
unsigned int for some reason. This change squashes a -Wsign-compare and a
-Wsign-conversion warning.

cmd/edgepaint/edgepaintmain.c

index 3473faab4c9cfd439267a1ac6b50e8954d2d5576..2fb6538448a2f6819a90c8c60f06d82397ab644e 100644 (file)
@@ -101,7 +101,7 @@ checkG (Agraph_t* g)
 
 static void init(int argc, char *argv[], real *angle, real *accuracy, char **infile, int *check_edges_with_same_endpoint, int *seed, char **color_scheme, char **lightness){
 
-  unsigned int c;
+  int c;
   char* cmd = argv[0];
   outfile = NULL;