From: Matthew Fernandez Date: Thu, 8 Sep 2022 03:56:00 +0000 (-0700) Subject: gvpr TFA_Advance: squash warnings in calling ctype.h functions X-Git-Tag: 6.0.1~5^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20b8bbf2ab9378bc6666b60fe2ac74766f06fc25;p=graphviz gvpr TFA_Advance: squash warnings in calling ctype.h functions Some standard libraries implement the ctype.h functions as macros in a way that triggers compiler warnings if the parameter is not int-typed. --- diff --git a/lib/gvpr/trieFA.h b/lib/gvpr/trieFA.h index 2bbd53926..36ffb4d69 100644 --- a/lib/gvpr/trieFA.h +++ b/lib/gvpr/trieFA.h @@ -61,8 +61,8 @@ static short TFA_State; #define TFA_Advance(C) { \ char c = C; \ if (TFA_State >= 0) { \ - if (isupper(c)) \ - c = (char)tolower(c); \ + if (isupper((int)c)) \ + c = (char)tolower((int)c); \ else if (! IN_MASK_RANGE(c)) { \ TFA_State = -1; \ goto TFA_done; \