]> granicus.if.org Git - graphviz/commitdiff
use an unsigned value for ingraphs error count
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 29 May 2021 18:00:32 +0000 (11:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 00:01:14 +0000 (17:01 -0700)
Obviously the number of errors that has occurred can never be negative. An
unsigned type more accurately indicates this. The only client of ingraphs that
actually checks the error count is nop, so this change has very little effect.

lib/ingraphs/ingraphs.h

index ce63b61b6394fa536288b2cf666bb98866f3d21d..22e48186ab8dea8514083875004a06879ff39817 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
        void *fp;
        ingdisc *fns;
        char heap;
-       int errors;
+       unsigned errors;
     } ingraph_state;
 
     extern ingraph_state *newIngraph(ingraph_state *, char **, opengfn);