summaryrefslogtreecommitdiff
path: root/Build/source/texk/dviljk/dvi2xx.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-07-17 16:08:25 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-07-17 16:08:25 +0000
commitf9f170e6483ce11f02a97e26b1ccf0a3e8cb9bfc (patch)
treeaef406659c131b665910c2bb48e0ccb132de5610 /Build/source/texk/dviljk/dvi2xx.c
parent3d92be8e488983918d91c10fc014881310317265 (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/dviljk/dvi2xx.c')
-rw-r--r--Build/source/texk/dviljk/dvi2xx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/dviljk/dvi2xx.c b/Build/source/texk/dviljk/dvi2xx.c
index 0fedea81632..69453cafbbd 100644
--- a/Build/source/texk/dviljk/dvi2xx.c
+++ b/Build/source/texk/dviljk/dvi2xx.c
@@ -378,9 +378,9 @@ main(int argc, char *argv[])
DEBUG_PRINT ("BOP for [");
for (i = 0; i <= 9; i++) {
count[i] = NoSignExtend(dvifp, 4);
- DEBUG_PRINT1 ("%d.", (int) count[i]);
+ DEBUG_PRINT1 ("%ld.", (long) count[i]);
}
- DEBUG_PRINT1 ("] at %ld.\n", cpagep);
+ DEBUG_PRINT1 ("] at %ld.\n", (long)cpagep);
ppagep = (long)NoSignExtend(dvifp, 4);
h = v = w = x = y = z = 0;
hh = vv = 0;
@@ -2907,7 +2907,7 @@ Primary author of Dvi2xx: Gustaf Neumann; -k maintainer: K. Berry.");
#endif
break;
case 'f': /* next arg is starting pagenumber */
- if ( sscanf(tcp + 1, "%ld", &FirstPage) != 1 )
+ if ( sscanf(tcp + 1, FMT_long4, &FirstPage) != 1 )
Fatal("Argument is not a valid integer\n");
FirstPageSpecified = _TRUE;
break;
@@ -3020,7 +3020,7 @@ Primary author of Dvi2xx: Gustaf Neumann; -k maintainer: K. Berry.");
break;
#endif
case 'p': /* print n pages */
- if ( sscanf(tcp + 1, "%ld", &PrintPages) != 1 )
+ if ( sscanf(tcp + 1, FMT_long4, &PrintPages) != 1 )
Fatal("Argument is not a valid integer\n");
if (PrintPages < 1)
Fatal("Argument of -p must be greater than 0\n");
@@ -3070,7 +3070,7 @@ Primary author of Dvi2xx: Gustaf Neumann; -k maintainer: K. Berry.");
break;
#endif
case 't': /* ending pagenumber */
- if ( sscanf(tcp + 1, "%ld", &LastPage) != 1 )
+ if ( sscanf(tcp + 1, FMT_long4, &LastPage) != 1 )
Fatal("Argument is not a valid integer\n");
LastPageSpecified = _TRUE;
break;
@@ -3856,9 +3856,9 @@ void DoSpecial(char *str, int n)
if (labs(x_pos)<labs(y_pos)) x_pos = x_pos+3;
else y_pos = y_pos+3;
if (GrayFill) {
- EMIT4("\033*c%lda%ldb%dg2P", x_pos, y_pos, GrayScale);
+ EMIT4("\033*c%lda%ldb%dg2P", (long)x_pos, (long)y_pos, GrayScale);
} else {
- EMIT4("\033*c%lda%ldb%dg3P", x_pos, y_pos, Pattern);
+ EMIT4("\033*c%lda%ldb%dg3P", (long)x_pos, (long)y_pos, Pattern);
}
last_rx = last_ry = UNKNOWN;
#endif