From: Matthew Fernandez Date: Thu, 29 Oct 2020 01:19:17 +0000 (-0700) Subject: squash a -Wconversion warning X-Git-Tag: 2.46.0~20^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e43cbe2f1f262984c599d0f16d282d2775a138f;p=graphviz squash a -Wconversion warning --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index a1f88711c..45c2a1213 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -483,7 +483,7 @@ static char * gvprintnum (size_t *len, double number) showzeros = FALSE; /* don't print trailing zeros */ for (i = DECPLACES; N || i > 0; i--) { /* non zero remainder, or still in fractional part */ - digit = N % 10; /* next least-significant digit */ + digit = (int)(N % 10L); /* next least-significant digit */ N /= 10; if (digit || showzeros) { /* if digit is non-zero, or if we are printing zeros */