From d8c017caa2cdf3447120ba574cd7d4c23b2747bf Mon Sep 17 00:00:00 2001 From: chase Date: Sun, 30 Sep 2018 09:49:27 -0500 Subject: [PATCH] gpftobdf.c: fix long int comiler warnings --- cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c b/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c index 41db3ad3..455d2fc1 100644 --- a/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c +++ b/cde/programs/dtudcfonted/dtgpftobdf/gpftobdf.c @@ -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; -- 2.25.1