]> granicus.if.org Git - graphviz/commitdiff
squash a -Wconversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Oct 2020 01:19:17 +0000 (18:19 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 4 Nov 2020 15:37:28 +0000 (07:37 -0800)
lib/gvc/gvdevice.c

index a1f88711c3b65e8b19b09f4876938b388e99e63b..45c2a1213ecfe2a1c153ed5ee1e3363264297741 100644 (file)
@@ -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 */