summaryrefslogtreecommitdiffstats
path: root/generic/tkImgGIF.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-06-01 20:19:20 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-06-01 20:19:20 (GMT)
commit21c0a3620120d2c3de6c50f2233cca8aa4721079 (patch)
tree1d7562f6cf558a4ce2b35ca0c7924b3ba02c77b2 /generic/tkImgGIF.c
parentd8a583a54508651a0ca4055400773b2b718c09d5 (diff)
downloadtk-21c0a3620120d2c3de6c50f2233cca8aa4721079.zip
tk-21c0a3620120d2c3de6c50f2233cca8aa4721079.tar.gz
tk-21c0a3620120d2c3de6c50f2233cca8aa4721079.tar.bz2
Fixed broken trunk caused by "signed/unsigned mismatch" compiler error on Windows, introduced by [4fe3c06b97] and [07622d5618]
Diffstat (limited to 'generic/tkImgGIF.c')
-rw-r--r--generic/tkImgGIF.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkImgGIF.c b/generic/tkImgGIF.c
index fbfe621..1c28b54 100644
--- a/generic/tkImgGIF.c
+++ b/generic/tkImgGIF.c
@@ -593,7 +593,7 @@ FileReadGIF(
*/
if (trashBuffer == NULL) {
- if (fileWidth > (UINT_MAX/3)/fileHeight) {
+ if (fileWidth > (int)((UINT_MAX/3)/fileHeight)) {
goto error;
}
nBytes = fileWidth * fileHeight * 3;
@@ -688,7 +688,7 @@ FileReadGIF(
goto error;
}
block.pitch = block.pixelSize * imageWidth;
- if (imageHeight > UINT_MAX/block.pitch) {
+ if (imageHeight > (int)(UINT_MAX/block.pitch)) {
goto error;
}
nBytes = block.pitch * imageHeight;