]> granicus.if.org Git - php/commitdiff
- MFB: silent compiler warnings
authorPierre Joye <pajoye@php.net>
Sat, 4 Nov 2006 14:29:00 +0000 (14:29 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 4 Nov 2006 14:29:00 +0000 (14:29 +0000)
ext/gd/libgd/gd_gd2.c

index 3f24e4a4769d328028226bb462568ddffcea6d4c..efc6ef47af598304e14dd1b54b0b4d615f85655a 100644 (file)
@@ -544,7 +544,7 @@ gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w,
                                chunkNum = cx + cy * ncx;
 
                                chunkLen = chunkMax;
-                               if (!_gd2ReadChunk (chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, chunkBuf, &chunkLen, in)) {
+                               if (!_gd2ReadChunk (chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, (char *)chunkBuf, &chunkLen, in)) {
                                        php_gd_error("Error reading comproessed chunk");
                                        goto fail2;
                                }
@@ -558,7 +558,7 @@ gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w,
                                for (x = xlo; x < xhi; x++) {
                                        if (!gd2_compressed(fmt)) {
                                                if (im->trueColor) {
-                                                       if (!gdGetInt(&ch, in)) {
+                                                       if (!gdGetInt((int *)&ch, in)) {
                                                                ch = 0;
                                                        }
                                                } else {