From: Matthew Fernandez Date: Wed, 3 Aug 2022 00:58:10 +0000 (-0700) Subject: gvpr validTVT: take a long long instead of int X-Git-Tag: 5.0.1~20^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b60299656cfec5da261808a4f9e397f4196ec48d;p=graphviz gvpr validTVT: take a long long instead of int This function is always called with long long values, so lets match it with its callers. Squashes 2 -Wconversion warnings. --- diff --git a/lib/gvpr/gprstate.c b/lib/gvpr/gprstate.c index 563ce49e9..2dcb0cde1 100644 --- a/lib/gvpr/gprstate.c +++ b/lib/gvpr/gprstate.c @@ -20,8 +20,7 @@ static int name_used; -int validTVT(int c) -{ +int validTVT(long long c) { return ((TV_flat <= c) && (c <= TV_prepostrev)); } diff --git a/lib/gvpr/gprstate.h b/lib/gvpr/gprstate.h index d9fb051f2..30417ea83 100644 --- a/lib/gvpr/gprstate.h +++ b/lib/gvpr/gprstate.h @@ -76,7 +76,7 @@ extern "C" { extern gvprbinding* findBinding(Gpr_t* state, char*); extern void closeGPRState(Gpr_t* state); extern void initGPRState(Gpr_t *, Vmalloc_t *); - extern int validTVT(int); + extern int validTVT(long long); #ifdef __cplusplus }