From f9f170e6483ce11f02a97e26b1ccf0a3e8cb9bfc Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Fri, 17 Jul 2009 16:08:25 +0000 Subject: various small fixes for 64Bit systems texk/dvipsk: add casts to avoid compiler warnings texk/gsftopk: add casts to avoid compiler warnings texk/ps2pkm: import changes from libs/t1lib texk/ttfdump: add casts to avoid compiler warnings texk/dviljk: add casts for printing and proper format specs for scanf to avoid compiler warnings and potential bugs git-svn-id: svn://tug.org/texlive/trunk@14299 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/ttfdump/libttf/cmap.c | 2 +- Build/source/texk/ttfdump/libttf/cvt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/ttfdump/libttf') diff --git a/Build/source/texk/ttfdump/libttf/cmap.c b/Build/source/texk/ttfdump/libttf/cmap.c index 3374829b4d8..0fa44d50369 100644 --- a/Build/source/texk/ttfdump/libttf/cmap.c +++ b/Build/source/texk/ttfdump/libttf/cmap.c @@ -629,7 +629,7 @@ static void ttfPrintCMAP4(FILE *fp,SubTablePtr subTable) j = subTable->map.cmap4->segCountX2/2 - i; j = subTable->map.cmap4->idRangeOffset[i] - j*sizeof(USHORT); - fprintf(fp, " gId# = %d\n",j/sizeof(USHORT)); + fprintf(fp, " gId# = %d\n", (int) (j/sizeof(USHORT))); } else fprintf(fp, " gId# = N/A\n"); diff --git a/Build/source/texk/ttfdump/libttf/cvt.c b/Build/source/texk/ttfdump/libttf/cvt.c index 364ae66f21a..0e9c2f14782 100644 --- a/Build/source/texk/ttfdump/libttf/cvt.c +++ b/Build/source/texk/ttfdump/libttf/cvt.c @@ -51,7 +51,7 @@ void ttfPrintCVT(FILE *fp, FWord *cvt, USHORT cvtLength) fprintf(fp,"'cvt ' Table - Control Value Table\n"); fprintf(fp,"----------------------------------\n"); - fprintf(fp,"Size = %d bytes, %d entries\n",cvtLength*sizeof(FWord), + fprintf(fp,"Size = %d bytes, %d entries\n", (int) (cvtLength*sizeof(FWord)), cvtLength); for (i=0;i