summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/libgd/gd_gd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd_gd.c b/ext/gd/libgd/gd_gd.c
index 72213a848e..60037395c3 100644
--- a/ext/gd/libgd/gd_gd.c
+++ b/ext/gd/libgd/gd_gd.c
@@ -196,7 +196,7 @@ _gdPutColors (gdImagePtr im, gdIOCtx * out)
{
int i;
- gdPutC (im->trueColor, out);
+ gdPutC ((unsigned char)im->trueColor, out);
if (!im->trueColor)
{
gdPutWord (im->colorsTotal, out);