1 --- evince-3.36.5/backend/dvi/mdvi-lib/sysdeps.h.orig 2017-10-03 20:15:33.000000000 +0200
2 +++ evince-3.36.5/backend/dvi/mdvi-lib/sysdeps.h 2020-06-16 17:20:53.413539122 +0200
5 typedef unsigned long Uint32;
8 #else /* SIZEOF_LONG != 4 */
10 typedef unsigned int Uint32;
13 #else /* SIZEOF_INT != 4 */
15 #include "No.appropriate.32bit.native.type.found.Fix.sysdeps.h"
16 --- evince-3.36.5/backend/dvi/mdvi-lib/dviread.c.orig 2020-06-11 13:59:00.000000000 +0200
17 +++ evince-3.36.5/backend/dvi/mdvi-lib/dviread.c 2020-06-16 17:30:50.300305509 +0200
20 h = dvi->pos.h + ch->tfmwidth;
21 hh = dvi->pos.hh + pixel_round(dvi, ch->tfmwidth);
22 - SHOWCMD((dvi, "setchar", num, "(%d,%d) h:=%d%c%d=%d, hh:=%d (%s)\n",
23 + SHOWCMD((dvi, "setchar", num, "(%d,%d) h:=%d%c%"PRIInt32"=%d, hh:=%d (%s)\n",
24 dvi->pos.hh, dvi->pos.vv,
25 DBGSUM(dvi->pos.h, ch->tfmwidth, h), hh,
29 h = vrule_round(dvi, a);
30 SHOWCMD((dvi, opcode == DVI_SET_RULE ? "setrule" : "putrule", -1,
31 - "width %d, height %d (%dx%d pixels)\n",
32 + "width %"PRIInt32", height %"PRIInt32" (%dx%d pixels)\n",
34 /* the `draw' functions expect the origin to be at the top left
35 * corner of the rule, not the bottom left, as in DVI files */
39 SHOWCMD((dvi, opcode == DVI_SET_RULE ? "setrule" : "putrule", -1,
40 - "(moving left only, by %d)\n", b));
41 + "(moving left only, by %"PRIInt32")\n", b));
44 if(opcode == DVI_SET_RULE) {
47 hh = move_horizontal(dvi, arg);
48 SHOWCMD((dvi, "right", opcode - DVI_RIGHT1 + 1,
49 - "%d h:=%d%c%d=%d, hh:=%d\n",
50 + "%"PRIInt32" h:=%d%c%"PRIInt32"=%d, hh:=%d\n",
51 arg, DBGSUM(h, arg, dvi->pos.h), hh));
56 vv = move_vertical(dvi, arg);
57 SHOWCMD((dvi, "down", opcode - DVI_DOWN1 + 1,
58 - "%d v:=%d%c%d=%d, vv:=%d\n",
59 + "%"PRIInt32" v:=%d%c%"PRIInt32"=%d, vv:=%d\n",
60 arg, DBGSUM(v, arg, dvi->pos.v), vv));
63 @@ -1494,11 +1494,11 @@
65 ref = dvi->findref(dvi, arg);
67 - dvierr(dvi, _("font %d is not defined\n"), arg);
68 + dvierr(dvi, _("font %"PRIInt32" is not defined\n"), arg);
71 SHOWCMD((dvi, "fnt", opcode - DVI_FNT1 + 1,
72 - "current font is %s (id %d)\n",
73 + "current font is %s (id %"PRIInt32")\n",
74 ref->ref->fontname, arg));
77 @@ -1538,11 +1538,11 @@
79 dskip(dvi, duget1(dvi) + duget1(dvi));
81 - dvierr(dvi, _("font %d is not defined in postamble\n"), arg);
82 + dvierr(dvi, _("font %"PRIInt32" is not defined in postamble\n"), arg);
85 SHOWCMD((dvi, "fntdef", opcode - DVI_FNT_DEF1 + 1,
86 - "%d -> %s (%d links)\n",
87 + "%"PRIInt32" -> %s (%d links)\n",
88 ref->fontid, ref->ref->fontname,