]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wconversion warning in attr.c
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 1 Sep 2020 06:35:45 +0000 (08:35 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 7 Sep 2020 13:42:17 +0000 (15:42 +0200)
lib/cgraph/attr.c

index 606ab7befffaf1fb6a3cf80b243e828c44d03ed2..2dde01cafdfd82a5470228645b646ed13c99dee1 100644 (file)
@@ -82,7 +82,7 @@ static Agsym_t *agnewsym(Agraph_t * g, char *name, char *value, int id, int kind
 {
     Agsym_t *sym;
     sym = agalloc(g, sizeof(Agsym_t));
-    sym->kind = kind;
+    sym->kind = (unsigned char) kind;
     sym->name = agstrdup(g, name);
     sym->defval = agstrdup(g, value);
     sym->id = id;