From 5580f70bbd991e39dc15aad12d280ddfe06eb65e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 2 Aug 2024 11:28:11 -0500 Subject: [PATCH] disp_hmsc29xx.c: Address Coverity flagged negative shift Coverity CID 1512508 Closes #5084. --- bsps/shared/dev/display/disp_hcms29xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/shared/dev/display/disp_hcms29xx.c b/bsps/shared/dev/display/disp_hcms29xx.c index 4e221a1a94..498e4bee2d 100644 --- a/bsps/shared/dev/display/disp_hcms29xx.c +++ b/bsps/shared/dev/display/disp_hcms29xx.c @@ -244,7 +244,7 @@ static rtems_status_code disp_hcms29xx_copy_font byte = src->latin1[glyph_idx]->bitmap[bcnt]; } if (shift_cnt < 0) { - byte = byte >> shift_cnt; + byte = byte << -shift_cnt; } else if (shift_cnt > 0) { byte = byte >> shift_cnt;