]> granicus.if.org Git - graphviz/commitdiff
squash a -Wconversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Oct 2020 01:19:31 +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 45c2a1213ecfe2a1c153ed5ee1e3363264297741..d539b1311a5ba6b6585170ba50c61149ea37a214 100644 (file)
@@ -487,7 +487,7 @@ static char * gvprintnum (size_t *len, double number)
         N /= 10;
         if (digit || showzeros) {      /* if digit is non-zero,
                                                or if we are printing zeros */
-            *--result = digit | '0';   /* convert digit to ascii */
+            *--result = (char)digit | '0';     /* convert digit to ascii */
             showzeros = TRUE;          /* from now on we must print zeros */
         }
         if (i == 1) {                  /* if completed fractional part */