From 9565eb6edec1ae0d15e69865112941b9a9d229b8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 14 Nov 2012 21:54:24 +0100 Subject: [PATCH] Fix warnings in pixconv.c --- gfx/scaler/pixconv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/scaler/pixconv.c b/gfx/scaler/pixconv.c index 4ac0e8297f..04bc69f949 100644 --- a/gfx/scaler/pixconv.c +++ b/gfx/scaler/pixconv.c @@ -216,7 +216,7 @@ void conv_0rgb1555_argb8888(void *output_, const void *input_, g = (g << 3) | (g >> 2); b = (b << 3) | (b >> 2); - output[w] = (0xff << 24) | (r << 16) | (g << 8) | (b << 0); + output[w] = (0xffu << 24) | (r << 16) | (g << 8) | (b << 0); } } } @@ -300,7 +300,7 @@ void conv_rgb565_argb8888(void *output_, const void *input_, g = (g << 2) | (g >> 4); b = (b << 3) | (b >> 2); - output[w] = (0xff << 24) | (r << 16) | (g << 8) | (b << 0); + output[w] = (0xffu << 24) | (r << 16) | (g << 8) | (b << 0); } } } @@ -565,7 +565,7 @@ void conv_bgr24_argb8888(void *output_, const void *input_, uint32_t b = *inp++; uint32_t g = *inp++; uint32_t r = *inp++; - output[w] = (0xff << 24) | (r << 16) | (g << 8) | (b << 0); + output[w] = (0xffu << 24) | (r << 16) | (g << 8) | (b << 0); } } }