mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- MFB: silent compiler warnings
This commit is contained in:
parent
5334153117
commit
c25d7f249a
1 changed files with 2 additions and 2 deletions
|
@ -544,7 +544,7 @@ gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w,
|
||||||
chunkNum = cx + cy * ncx;
|
chunkNum = cx + cy * ncx;
|
||||||
|
|
||||||
chunkLen = chunkMax;
|
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");
|
php_gd_error("Error reading comproessed chunk");
|
||||||
goto fail2;
|
goto fail2;
|
||||||
}
|
}
|
||||||
|
@ -558,7 +558,7 @@ gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w,
|
||||||
for (x = xlo; x < xhi; x++) {
|
for (x = xlo; x < xhi; x++) {
|
||||||
if (!gd2_compressed(fmt)) {
|
if (!gd2_compressed(fmt)) {
|
||||||
if (im->trueColor) {
|
if (im->trueColor) {
|
||||||
if (!gdGetInt(&ch, in)) {
|
if (!gdGetInt((int *)&ch, in)) {
|
||||||
ch = 0;
|
ch = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue