Skip to content

Commit c29cbba

Browse files
committed
Fix bugs in cffdump.
1 parent 28c36b2 commit c29cbba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cffdump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static int readinteger(FILE *f, int b0)
143143
{
144144
b1 = read8(f);
145145
b2 = read8(f);
146-
return (b1 << 8) | b2;
146+
return (short)((b1 << 8) | b2);
147147
}
148148

149149
if (b0 == 29)
@@ -292,7 +292,7 @@ static void readdict(FILE *f, char *dictname, int idx, int sofs, int eofs, int i
292292
if (x[i].type == INTEGER)
293293
printf("%d ", x[i].ival);
294294
if (x[i].type == REAL)
295-
printf("%g ", x[i].rval);
295+
printf("%0.9g ", x[i].rval);
296296
}
297297

298298
printf("\n");

0 commit comments

Comments
 (0)