gpftobdf.c: fix long int comiler warnings
authorchase <chase@localhost.com>
Sun, 30 Sep 2018 14:49:27 +0000 (09:49 -0500)
committerJon Trulson <jon@radscan.com>
Sun, 30 Sep 2018 23:26:27 +0000 (17:26 -0600)
cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c

index 41db3ad363ff8d32fc01c144d5e6dcef841bb327..455d2fc11f0ac3449f6d02e14b6d65a1733470dc 100644 (file)
@@ -974,7 +974,7 @@ pPROPS( FontInfoRec *fip, FontPropRec *fplistPtr, unsigned int fplistNum )
        bufp += k;
        wkp = fplistPtr;
        for ( i = 0; i < fplistNum; i++ ) {
-                       k = snprintf( bufp, sizeof(buf) - (bufp - buf), "%s %d\n", (char *) (intptr_t) wkp->name, wkp->value );
+                       k = snprintf( bufp, sizeof(buf) - (bufp - buf), "%s %ld\n", (char *) (intptr_t) wkp->name, wkp->value );
                        bufp += k;
                        wkp++;
        }
@@ -1017,7 +1017,7 @@ pPROPS_pcf(PcfTmp *pcf)
                            );
                        bufp += k;
                } else {
-                       k = sprintf(bufp,"%s %d\n",
+                       k = sprintf(bufp,"%s %ld\n",
                            pcf->string + wkp->name, wkp->value
                            );
                        bufp += k;