Pārlūkot izejas kodu

Fix 32-bit unsigned integer shift

master
Bert Münnich pirms 9 gadiem
vecāks
revīzija
4db3029bc6
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      Makefile
  2. +1
    -1
      image.c

+ 1
- 1
Makefile Parādīt failu

@@ -1,4 +1,4 @@
VERSION := git-20151225
VERSION := git-20151226


PREFIX := /usr/local PREFIX := /usr/local
MANPREFIX := $(PREFIX)/share/man MANPREFIX := $(PREFIX)/share/man


+ 1
- 1
image.c Parādīt failu

@@ -227,7 +227,7 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
r = cmap->Colors[rows[i-y][j-x]].Red; r = cmap->Colors[rows[i-y][j-x]].Red;
g = cmap->Colors[rows[i-y][j-x]].Green; g = cmap->Colors[rows[i-y][j-x]].Green;
b = cmap->Colors[rows[i-y][j-x]].Blue; 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++; ptr++;
} }


Notiek ielāde…
Atcelt
Saglabāt