Mercurial > hg > dmlib
diff tools/gfxconv.c @ 867:56e12109b936
Portability warning fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Jan 2015 03:49:56 +0200 |
parents | daebbf28953d |
children | fc272f5f2d15 |
line wrap: on
line diff
--- a/tools/gfxconv.c Thu Jan 08 03:41:35 2015 +0200 +++ b/tools/gfxconv.c Thu Jan 08 03:49:56 2015 +0200 @@ -331,7 +331,7 @@ // Parse either a hex triplet color definition or a normal value if (*opt == '#' || *opt == '%') { - int colR, colG, colB, colA; + unsigned int colR, colG, colB, colA; if (sscanf(opt + 1, "%2x%2x%2x%2x", &colR, &colG, &colB, &colA) == 4 || sscanf(opt + 1, "%2X%2X%2X%2X", &colR, &colG, &colB, &colA) == 4)