Commits

pajoye  committed 1b454af

- #121, tiff support, fix possible issue with sequence ops (compilers
may behave differently)

  • Participants
  • Parent commits 0d97189
  • Branches GD-2.0

Comments (0)

Files changed (1)

File src/gd_tiff.c

 			} else {
 				for (y = 0; y < height; y++) {
 					for (x = 0; x < width; x++) {
-						gdImageSetPixel(im, x, y, gdTrueColor(*src++, *src++, *src++));
+						register unsigned char r = *src++;
+						register unsigned char g = *src++;
+						register unsigned char b = *src++;
+
+						gdImageSetPixel(im, x, y, gdTrueColor(r, g, b));
 					}
 				}
 			}