From d609e81f66badbaf1b8a5092eaa102962cd092fa Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Tue, 21 Nov 2017 21:44:17 -0500 Subject: [PATCH] I7000: Fixed minor compiler warnings. --- I7000/i7090_lpr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;