pajoye          Sat Nov  4 14:29:00 2006 UTC

  Modified files:              
    /php-src/ext/gd/libgd       gd_gd2.c 
  Log:
  - MFB: silent compiler warnings
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd_gd2.c?r1=1.18&r2=1.19&diff_format=u
Index: php-src/ext/gd/libgd/gd_gd2.c
diff -u php-src/ext/gd/libgd/gd_gd2.c:1.18 php-src/ext/gd/libgd/gd_gd2.c:1.19
--- php-src/ext/gd/libgd/gd_gd2.c:1.18  Wed Jul 26 08:51:53 2006
+++ php-src/ext/gd/libgd/gd_gd2.c       Sat Nov  4 14:29:00 2006
@@ -544,7 +544,7 @@
                                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 @@
                                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 {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to