cvs: gd /libgd/src gd_tiff.c
[email protected] ("Pierre-Alain Joye") Thu, 27 Dec 2007 20:12:50 -0000
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1198786370@cvsserver> |
pajoye Thu Dec 27 20:12:50 2007 UTC
Modified files:
/gd/libgd/src gd_tiff.c
Log:
- #121, tiff support, fix possible issue with sequence ops (compilers
may behave differently)
http://cvs.php.net/viewvc.cgi/gd/libgd/src/gd_tiff.c?r1=1.16&r2=1.17&diff_format=u
Index: gd/libgd/src/gd_tiff.c
diff -u gd/libgd/src/gd_tiff.c:1.16 gd/libgd/src/gd_tiff.c:1.17
--- gd/libgd/src/gd_tiff.c:1.16 Sun Oct 28 23:09:09 2007
+++ gd/libgd/src/gd_tiff.c Thu Dec 27 20:12:50 2007
@@ -27,7 +27,7 @@
----------------------------------------------------------------------------
*/
-/* $Id: gd_tiff.c,v 1.16 2007/10/28 23:09:09 mattias Exp $ */
+/* $Id: gd_tiff.c,v 1.17 2007/12/27 20:12:50 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -570,7 +570,11 @@
} 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));
}
}
}