diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-07-17 16:08:25 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-07-17 16:08:25 +0000 |
commit | f9f170e6483ce11f02a97e26b1ccf0a3e8cb9bfc (patch) | |
tree | aef406659c131b665910c2bb48e0ccb132de5610 /Build/source/texk/gsftopk | |
parent | 3d92be8e488983918d91c10fc014881310317265 (diff) |
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
Diffstat (limited to 'Build/source/texk/gsftopk')
-rw-r--r-- | Build/source/texk/gsftopk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/gsftopk/gsftopk.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/gsftopk/ChangeLog b/Build/source/texk/gsftopk/ChangeLog index 9d2509c2667..3906a4b266d 100644 --- a/Build/source/texk/gsftopk/ChangeLog +++ b/Build/source/texk/gsftopk/ChangeLog @@ -1,3 +1,8 @@ +2009-07-17 Peter Breitenlohner <peb@mppmu.mpg.de> + + * gsftopk.c (pk_rll_cvt): cast ptr diff to long for printing. + NB: sizeof(ptr)==sizeof(long) for both 32Bit and 64Bit systems. + 2009-06-20 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am (AM_CFLAGS): enable compiler warnings. diff --git a/Build/source/texk/gsftopk/gsftopk.c b/Build/source/texk/gsftopk/gsftopk.c index e4b20ca5792..38222224b05 100644 --- a/Build/source/texk/gsftopk/gsftopk.c +++ b/Build/source/texk/gsftopk/gsftopk.c @@ -1742,8 +1742,8 @@ pk_rll_cvt(void) ++cost; } if (cost != 2 * (bitmap_end - bitmap)) - printf("Cost miscalculation: expected %d, got %d\n", cost, - 2 * (bitmap_end - bitmap)); + printf("Cost miscalculation: expected %d, got %ld\n", cost, + 2 * (long) (bitmap_end - bitmap)); pk_len = bitmap_end - bitmap; return True; } |