mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-19 09:13:33 +01:00
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
3281349f8d
commit
ebac2bbcd8
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user