summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2018-07-29 11:24:43 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2018-07-29 11:24:43 +0100
commit7bb4955f3fc64627c4c3f93b28173e7fc853e775 (patch)
treed6f7c31fb9a5d97577c939fc3541508b2f8e700b
parent90c270599b5b6c10ac06c37a0efb142d2d06bb3a (diff)
downloadlibnsfb-7bb4955f3fc64627c4c3f93b28173e7fc853e775.tar.gz
libnsfb-7bb4955f3fc64627c4c3f93b28173e7fc853e775.tar.bz2
8 bit glyph plotter: Squash undefined shift error.
src/plot/common.c:216:83: runtime error: left shift of 170 by 24 places cannot be represented in type 'int'
-rw-r--r--src/plot/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plot/common.c b/src/plot/common.c
index b051131..5f55686 100644
--- a/src/plot/common.c
+++ b/src/plot/common.c
@@ -213,7 +213,7 @@ glyph8(nsfb_t *nsfb,
for (yloop = 0; yloop < height; yloop++) {
for (xloop = 0; xloop < width; xloop++) {
- abpixel = (pixel[((yoff + yloop) * pitch) + xloop + xoff] << 24) | fgcol;
+ abpixel = ((unsigned)pixel[((yoff + yloop) * pitch) + xloop + xoff] << 24) | fgcol;
if ((abpixel & 0xFF000000) != 0) {
/* pixel is not transparent */
if ((abpixel & 0xFF000000) != 0xFF000000) {