]> granicus.if.org Git - graphviz/commitdiff
htmllex.c: consistently use int types for 'warn' and 'error'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 16 Nov 2021 01:55:51 +0000 (17:55 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Dec 2021 00:29:45 +0000 (16:29 -0800)
Squashes a -Wconversion warning.

lib/common/htmllex.c

index 53b1210c0f4517298833d81ad888df0d651fc5df..4a688a73cdfc3543a11a72b0e110e47471816186 100644 (file)
@@ -40,8 +40,8 @@ typedef struct {
     int tok;           // token type
     agxbuf* xb;        // buffer to gather T_string data
     agxbuf lb;         // buffer for translating lexical data
-    char warn;         // set if warning given
-    char error;        // set if error given
+    int warn;          // set if warning given
+    int error;         // set if error given
     char inCell;       // set if in TD to allow T_string
     char mode;         // for handling artificial <HTML>..</HTML>
     char *currtok;     // for error reporting