From: Matthew Fernandez Date: Thu, 8 Sep 2022 03:46:34 +0000 (-0700) Subject: gvpr assignable: make it clearer that argument to 'TFA_Advance' fits in a char X-Git-Tag: 6.0.1~5^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d4531cf4e7a308bed7f4de373d270d9dddb516c;p=graphviz gvpr assignable: make it clearer that argument to 'TFA_Advance' fits in a char Squashes a -Wconversion warning. --- diff --git a/lib/gvpr/compile.c b/lib/gvpr/compile.c index 4b3502809..e907c1db9 100644 --- a/lib/gvpr/compile.c +++ b/lib/gvpr/compile.c @@ -353,7 +353,7 @@ static void assignable (Agobj_t *objp, unsigned char* name) { TFA_Init(); while (TFA_State >= 0 && (ch = *p)) { - TFA_Advance(ch > 127 ? 127 : ch); + TFA_Advance(ch > 127 ? 127 : (char)ch); p++; } rv = TFA_Definition();