aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2015-12-26 10:14:35 +0100
committerBert Münnich <ber.t@posteo.de>2015-12-26 10:14:35 +0100
commit4db3029bc609043f4aa029b36f9d1e9dfcc5e8e2 (patch)
treec5a153021fb3feb2e48ff464c89feab74fe424b9
parentb32aefce3a8c98c3ddb35f8f5e89b56ca757ad61 (diff)
Fix 32-bit unsigned integer shift
-rw-r--r--Makefile2
-rw-r--r--image.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5346acd..1380c2b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION := git-20151225
+VERSION := git-20151226
PREFIX := /usr/local
MANPREFIX := $(PREFIX)/share/man
diff --git a/image.c b/image.c
index e067c71..9350ab1 100644
--- a/image.c
+++ b/image.c
@@ -227,7 +227,7 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
r = cmap->Colors[rows[i-y][j-x]].Red;
g = cmap->Colors[rows[i-y][j-x]].Green;
b = cmap->Colors[rows[i-y][j-x]].Blue;
- *ptr = 0xff << 24 | r << 16 | g << 8 | b;
+ *ptr = 0xffu << 24 | r << 16 | g << 8 | b;
}
ptr++;
}