From 76d7cb872cc3b35020243cb6f91ea7023b3e4d24 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 1 Sep 2020 08:35:45 +0200 Subject: [PATCH] Remove 1 -Wconversion warning in attr.c --- lib/cgraph/attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cgraph/attr.c b/lib/cgraph/attr.c index 606ab7bef..2dde01caf 100644 --- a/lib/cgraph/attr.c +++ b/lib/cgraph/attr.c @@ -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; -- 2.40.0