mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-20 09:43:32 +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) {
|
if (image->format == RRGBAFormat) {
|
||||||
memcpy(&tmp[4], image->data, image->width * image->height * 4);
|
memcpy(&tmp[4], image->data, image->width * image->height * 4);
|
||||||
} else {
|
} else {
|
||||||
char *ptr = (char *)(tmp + 4);
|
unsigned char *ptr = tmp + 4;
|
||||||
char *src = (char *)image->data;
|
unsigned char *src = (unsigned char *)image->data;
|
||||||
|
|
||||||
for (y = 0; y < image->height; y++) {
|
for (y = 0; y < image->height; y++) {
|
||||||
for (x = 0; x < image->width; x++) {
|
for (x = 0; x < image->width; x++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user