1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-25 19:56:04 +00:00

KA10: Removed some coverity errors.

This commit is contained in:
Richard Cornwell
2022-01-19 23:07:48 -05:00
parent 716a4844c8
commit 4a739efc77
2 changed files with 3 additions and 3 deletions

View File

@@ -460,7 +460,7 @@ lp20_printline(UNIT *uptr, int nl) {
int trim = 0;
/* Trim off trailing blanks */
while (lp20_col >= 0 && lp20_buffer[lp20_col - 1] == ' ') {
while (lp20_col != 0 && lp20_buffer[lp20_col - 1] == ' ') {
lp20_col--;
trim = 1;
}

View File

@@ -383,9 +383,9 @@ uba_clr_irq(DIB *idev)
if (dibp->uba_ctl == idev->uba_ctl &&
dibp->uba_irq_pend != 0) {
lvl = 0;
for (j = 0200; j != 0; j>>=2) {
for (j = 0200; j != 0; j>>=1) {
/* At least one, no need to continue */
if ((dibp->uba_irq_pend & (0200 >> j)) != 0) {
if ((dibp->uba_irq_pend & j) != 0) {
set_interrupt(dibp->uba_ctl<<2, pi);
return;
}