From cc17f044f0395645af392794b2c9d9f6237aa5be Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Sat, 22 Feb 2020 22:01:11 -0500 Subject: [PATCH] CARD: Clean up typo from Coverity fix. --- sim_card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_card.c b/sim_card.c index fc75797a..fcb2af26 100644 --- a/sim_card.c +++ b/sim_card.c @@ -791,7 +791,7 @@ _sim_parse_card(UNIT *uptr, DEVICE *dptr, struct _card_buffer *buf, uint16 (*ima for (col = i = 0; i < 160;) { temp |= (uint16)(buf->buffer[i] & 0xff); (*image)[col] = (buf->buffer[i++] >> 4) & 0xF; - (*image)[col++] |= ((uint16)buf->buffer[i++] & 0xf) << 4; + (*image)[col++] |= ((uint16)buf->buffer[i++] & 0xff) << 4; } /* Check if format error */ if (temp & 0xF)