From 81d1300aeab9da81671b7f4c1486cb06d55849bf Mon Sep 17 00:00:00 2001 From: Jason Summers Date: Tue, 29 Jun 2021 08:54:23 -0400 Subject: [PATCH] Changes to silence possible analyzer warnings --- modules/amigaicon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/amigaicon.c b/modules/amigaicon.c index 38ddcfe7..8ccc2ca7 100644 --- a/modules/amigaicon.c +++ b/modules/amigaicon.c @@ -51,7 +51,7 @@ static void do_newicons_append_bit(deark *c, lctx *d, dbuf *f, u8 b) if(d->pending_data_bits_used==0) { d->pending_data = 0; } - d->pending_data = (d->pending_data<<1) | b; + d->pending_data = (d->pending_data<<1) | (b & 0x1); d->pending_data_bits_used++; if(d->newicons_line_count==0) { @@ -280,7 +280,7 @@ static int do_read_main_icon(deark *c, lctx *d, b = 0x00; for(plane=0; planeinfile, 1, pos+plane*src_planespan + j*src_rowspan, i); - b = (b<<1) | b1; + b = (b<<1) | (b1 & 0x1); } de_bitmap_setpixel_rgb(img, i, j, pal[b]); } -- 2.11.4.GIT