From: Matthew Fernandez Date: Wed, 3 Aug 2022 01:16:18 +0000 (-0700) Subject: gvpr tvtypeToStr: take a long long instead of int X-Git-Tag: 5.0.1~20^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cf54d94628ca21c62b7473c12f8e550fdb8f596;p=graphviz gvpr tvtypeToStr: 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/compile.c b/lib/gvpr/compile.c index a2e3e3195..141b06b92 100644 --- a/lib/gvpr/compile.c +++ b/lib/gvpr/compile.c @@ -2029,9 +2029,7 @@ strToTvtype (char* s) /* tvtypeToStr: */ -static char* -tvtypeToStr (int v) -{ +static char *tvtypeToStr(long long v) { char* s = 0; switch (v) { @@ -2075,8 +2073,7 @@ tvtypeToStr (int v) s = "TV_prepostrev"; break; default: - exerror("Unexpected value %d for type tvtype_t", - v); + exerror("Unexpected value %lld for type tvtype_t", v); break; } return s;