wdvi

network DVI viewer
Log | Files | Refs

commit 6b2bdc04bdb95c14c8dbdd91b25a30c9e598dd67
parent ebb781c8d09cb92b2fb68062d0806ac5097a49f1
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Sun, 12 Sep 2021 22:08:26 +0000

assume __STDC__

Diffstat:
Mdvi-draw.c | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/dvi-draw.c b/dvi-draw.c @@ -214,18 +214,14 @@ xnum(size) } static long -xsnum(size) - ubyte size; +xsnum(ubyte size) { long x; -#if __STDC__ x = (signed char) xone(); -#else - x = xone(); - if (x & 0x80) x -= 0x100; -#endif - while (--size) x = (x << 8) | xone(); + + while (--size) + x = (x << 8) | xone(); return x; }