diff options
author | simon <simon> | 2017-04-09 09:58:26 (GMT) |
---|---|---|
committer | simon <simon> | 2017-04-09 09:58:26 (GMT) |
commit | ecb43b95d081457c902567ec0af910da0add5c57 (patch) | |
tree | 82be5c9b82b674236df9d5bf14600b4353d025a0 | |
parent | 6e1042836324712a2f6fc10b471ade87872857ba (diff) | |
download | tk-ecb43b95d081457c902567ec0af910da0add5c57.zip tk-ecb43b95d081457c902567ec0af910da0add5c57.tar.gz tk-ecb43b95d081457c902567ec0af910da0add5c57.tar.bz2 |
Fixed incorrect parsing of #ARGB format on Windows
-rw-r--r-- | generic/tkImgListFormat.c | 4 |
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 */ |