diff --git a/examples/vwebp.c b/examples/vwebp.c index a79c72cb..f3f16474 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -286,7 +286,7 @@ static void PrintString(const char* const text) { } static float GetColorf(uint32_t color, int shift) { - return (color >> shift) / 255.f; + return ((color >> shift) & 0xff) / 255.f; } static void DrawCheckerBoard(void) {