diff options
Diffstat (limited to 'ext/gd/libgd/gd_jpeg.c')
| -rw-r--r-- | ext/gd/libgd/gd_jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd_jpeg.c b/ext/gd/libgd/gd_jpeg.c index 54da0779d2..96b895ec38 100644 --- a/ext/gd/libgd/gd_jpeg.c +++ b/ext/gd/libgd/gd_jpeg.c @@ -813,7 +813,7 @@ term_destination (j_compress_ptr cinfo) /* Write any data remaining in the buffer */ if (datacount > 0) { - if (gdPutBuf (dest->buffer, datacount, dest->outfile) != datacount) + if ((size_t)gdPutBuf (dest->buffer, datacount, dest->outfile) != datacount) ERREXIT (cinfo, JERR_FILE_WRITE); } } |
