diff options
author | Pierre Joye <pajoye@php.net> | 2006-11-04 14:29:00 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2006-11-04 14:29:00 +0000 |
commit | c25d7f249a6656fc5e94cadb7f78356167daa7e6 (patch) | |
tree | f6f7ecb5afc0b638ceabd63f959d2461a90b1fa2 | |
parent | 53341531176ef8792bf4752144a6bcbb243e6f1a (diff) | |
download | php-git-c25d7f249a6656fc5e94cadb7f78356167daa7e6.tar.gz |
- MFB: silent compiler warnings
-rw-r--r-- | ext/gd/libgd/gd_gd2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/libgd/gd_gd2.c b/ext/gd/libgd/gd_gd2.c index 3f24e4a476..efc6ef47af 100644 --- a/ext/gd/libgd/gd_gd2.c +++ b/ext/gd/libgd/gd_gd2.c @@ -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 { |