From fef580886f5541339976b5e5714a2b9acb1633a9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 20 Sep 2022 19:32:46 -0700 Subject: [PATCH] pack isLegal: remove the need for some casting --- lib/pack/ccomps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pack/ccomps.c b/lib/pack/ccomps.c index 86ce2dd48..4dc9abbb3 100644 --- a/lib/pack/ccomps.c +++ b/lib/pack/ccomps.c @@ -84,10 +84,10 @@ static size_t dfs(Agraph_t * g, Agnode_t * n, void *state, stk_t* stk) static int isLegal(char *p) { - unsigned char c; + char c; - while ((c = *(unsigned char *) p++)) { - if (c != '_' && !isalnum(c)) + while ((c = *p++)) { + if (c != '_' && !isalnum((int)c)) return 0; } -- 2.40.0