diff --git a/I7000/i7090_lpr.c b/I7000/i7090_lpr.c index 7a6271d..409df8c 100644 --- a/I7000/i7090_lpr.c +++ b/I7000/i7090_lpr.c @@ -290,7 +290,7 @@ print_line(UNIT * uptr, int chan, int unit) } if (outsel & PRINT_1) { - while (uptr->u4 < (uint32)uptr->capac) { + while (uptr->u4 < (int32)uptr->capac) { if (uptr->flags & UNIT_ATT) sim_fwrite("\n\r", 1, 2, uptr->fileref); if (uptr->flags & ECHO) { @@ -301,8 +301,8 @@ print_line(UNIT * uptr, int chan, int unit) } } - if (uptr->u4 >= (uint32)uptr->capac) { - uptr->u4 -= (uint32)uptr->capac; + if (uptr->u4 >= (int32)uptr->capac) { + uptr->u4 -= (int32)uptr->capac; dev_pulse[chan] |= PRINT_I; } @@ -627,7 +627,6 @@ void lpr_ini(UNIT * uptr, t_bool f) { int u = (uptr - lpr_unit); - int i; uptr->u3 = 0; uptr->u4 = 0;