From ebac2bbcd82a8ce621c2eb68209e3862cf8bd7f0 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Wed, 4 Feb 2026 12:42:53 -0500 Subject: [PATCH] wmaker: fix compiler warning in properties.c This patch is fixing a compiler warning for the implicit conversion of int to char changes value from 255 to -1 when at the line *ptr++ = 255 the code is trying to store the value 255 into a char. --- src/properties.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/properties.c b/src/properties.c index 6751306c..d1db0033 100644 --- a/src/properties.c +++ b/src/properties.c @@ -197,8 +197,8 @@ void PropSetIconTileHint(WScreen * scr, RImage * image) if (image->format == RRGBAFormat) { memcpy(&tmp[4], image->data, image->width * image->height * 4); } else { - char *ptr = (char *)(tmp + 4); - char *src = (char *)image->data; + unsigned char *ptr = tmp + 4; + unsigned char *src = (unsigned char *)image->data; for (y = 0; y < image->height; y++) { for (x = 0; x < image->width; x++) {