summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimon <simon>2017-04-09 09:58:26 (GMT)
committersimon <simon>2017-04-09 09:58:26 (GMT)
commitecb43b95d081457c902567ec0af910da0add5c57 (patch)
tree82be5c9b82b674236df9d5bf14600b4353d025a0
parent6e1042836324712a2f6fc10b471ade87872857ba (diff)
downloadtk-ecb43b95d081457c902567ec0af910da0add5c57.zip
tk-ecb43b95d081457c902567ec0af910da0add5c57.tar.gz
tk-ecb43b95d081457c902567ec0af910da0add5c57.tar.bz2
Fixed incorrect parsing of #ARGB format on Windows
-rw-r--r--generic/tkImgListFormat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkImgListFormat.c b/generic/tkImgListFormat.c
index 786dda4..2c6c58a 100644
--- a/generic/tkImgListFormat.c
+++ b/generic/tkImgListFormat.c
@@ -925,7 +925,7 @@ ParseColorAsHex(
unsigned char *alphaPtr)
{
int i;
- long int colorValue = 0;
+ unsigned long int colorValue = 0;
if (colorStrLen - 1 != 4 && colorStrLen - 1 != 8) {
return ParseColorAsStandard(interp, colorString, colorStrLen,
@@ -943,7 +943,7 @@ ParseColorAsHex(
}
}
- colorValue = strtol(colorString + 1, NULL, 16);
+ colorValue = strtoul(colorString + 1, NULL, 16);
switch (colorStrLen - 1) {
case 4:
/* #ARGB format */