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/dvipsk | |
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/dvipsk')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/writet1.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 12ddf3d01e5..786aaf95a92 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,9 @@ +2009-07-17 Peter Breitenlohner <peb@mppmu.mpg.de> + + * writet1.c (t1_flush_cs): cast ptr diff to unsigned long for + printing. + NB: sizeof(ptr)==sizeof(long) for both 32Bit and 64Bit systems. + 2009-07-16 Peter Breitenlohner <peb@mppmu.mpg.de> * squeeze/squeeze.c (__CYGWIN__): #include <unistd.h> and <io.h> diff --git a/Build/source/texk/dvipsk/writet1.c b/Build/source/texk/dvipsk/writet1.c index d28f2a3936f..0576bba9bad 100644 --- a/Build/source/texk/dvipsk/writet1.c +++ b/Build/source/texk/dvipsk/writet1.c @@ -1593,7 +1593,7 @@ static void t1_flush_cs(boolean is_subr) for (ptr = tab; ptr < end_tab; ptr++) { if (ptr->used) { if (is_subr) - sprintf(t1_line_array, "dup %u %u", ptr - tab, ptr->cslen); + sprintf(t1_line_array, "dup %lu %u", (unsigned long) (ptr - tab), ptr->cslen); else sprintf(t1_line_array, "/%s %u", ptr->name, ptr->cslen); p = strend(t1_line_array); @@ -1604,7 +1604,7 @@ static void t1_flush_cs(boolean is_subr) else { /* replace unsused subr's by return_cs */ if (is_subr) { - sprintf(t1_line_array, "dup %u %u%s ", ptr - tab, cs_len, + sprintf(t1_line_array, "dup %lu %u%s ", (unsigned long) (ptr - tab), cs_len, cs_token_pair[0]); p = strend(t1_line_array); memcpy(p, return_cs, cs_len); |