forked from Imagelibrary/rtems
disp_hmsc29xx.c: Address Coverity flagged negative shift
Coverity CID 1512508 Closes #5084.
This commit is contained in:
committed by
Chris Johns
parent
02a8935698
commit
5580f70bbd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user