diff options
author | Bert Münnich <ber.t@posteo.de> | 2015-12-26 10:14:35 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2015-12-26 10:14:35 +0100 |
commit | 4db3029bc609043f4aa029b36f9d1e9dfcc5e8e2 (patch) | |
tree | c5a153021fb3feb2e48ff464c89feab74fe424b9 /image.c | |
parent | b32aefce3a8c98c3ddb35f8f5e89b56ca757ad61 (diff) | |
download | nsxiv-4db3029bc609043f4aa029b36f9d1e9dfcc5e8e2.tar.zst |
Fix 32-bit unsigned integer shift
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; } |