summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2022-05-01 07:58:49 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2022-05-01 07:58:49 +0000
commit1080ce324d2af3d77cf27fa25b1ee8d2c1314693 (patch)
treef474a3eb4179f37c9ae6e66b35a9b5b3781977fb
parentff38f4c4fcbdff8ee70652ad942ce5461217ba9c (diff)
disdvi.c: use %lu instead of %ld for unsinged long
git-svn-id: svn://tug.org/texlive/trunk@63197 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvi2tty/dvi2tty-src/disdvi.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/Build/source/texk/dvi2tty/dvi2tty-src/disdvi.c b/Build/source/texk/dvi2tty/dvi2tty-src/disdvi.c
index aa28806b6b0..9453cb25b7b 100644
--- a/Build/source/texk/dvi2tty/dvi2tty-src/disdvi.c
+++ b/Build/source/texk/dvi2tty/dvi2tty-src/disdvi.c
@@ -446,15 +446,15 @@ void postamble(void)
printf("POST last page offset : %06ld\n", sget4());
printf("%06ld: ", pc);
- printf(" numerator : %ld\n", get4());
+ printf(" numerator : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" denominator : %ld\n", get4());
+ printf(" denominator : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" magnification : %ld\n", get4());
+ printf(" magnification : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" max page height : %ld\n", get4());
+ printf(" max page height : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" max page width : %ld\n", get4());
+ printf(" max page width : %lu\n", get4());
printf("%06ld: ", pc);
printf(" stack size needed: %d\n", (int) get2());
printf("%06ld: ", pc);
@@ -476,11 +476,11 @@ void preamble(void)
printf("PRE version : %d\n", (int) get1());
printf("%06ld: ", pc);
- printf(" numerator : %ld\n", get4());
+ printf(" numerator : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" denominator : %ld\n", get4());
+ printf(" denominator : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" magnification : %ld\n", get4());
+ printf(" magnification : %lu\n", get4());
printf("%06ld: ", pc);
i = (int) get1();
printf(" job name (%3d) :", i);
@@ -502,7 +502,7 @@ void postpostamble(void)
{
register int i;
- printf("POSTPOST postamble offset : %06ld\n", get4());
+ printf("POSTPOST postamble offset : %06lu\n", get4());
printf("%06ld: ", pc);
printf(" version : %d\n", (int) get1());
while ((i = (int) get1()) == TRAILER) {
@@ -558,11 +558,11 @@ void fontdef(int x)
fntnum = num(x);
printf("FNT_DEF%d: %ld\n", x, fntnum);
printf("%06ld: ", pc); /* avoid side-effect on pc in get4() */
- printf(" checksum : %ld\n", get4());
+ printf(" checksum : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" scale : %ld\n", get4());
+ printf(" scale : %lu\n", get4());
printf("%06ld: ", pc);
- printf(" design : %ld\n", get4());
+ printf(" design : %lu\n", get4());
printf("%06ld: ", pc);
printf(" name : ");
namelen = (int) get1() + (int) get1();
@@ -690,7 +690,7 @@ unsigned long num(int size)
pc += size;
for (i = size; i > 0; i--)
- x = (x << 8) + (unsigned long) getc(dvifp);
+ x = (x << 8) + (unsigned) getc(dvifp);
return x;
@@ -797,7 +797,7 @@ void natfontdef(int opcode)
fntnum = num(4);
printf("NAT_FNT: %ld\n", fntnum);
printf("%06ld: ", pc);
- printf(" scale : %ld\n", get4());
+ printf(" scale : %lu\n", get4());
printf("%06ld: ", pc);
flags = get2();
printf(" flags : %d\n", flags);