From 62cec249d7140c3a2378501cf22b8c26e4497c76 Mon Sep 17 00:00:00 2001 From: Dominic Fandrey Date: Sat, 26 Nov 2016 14:44:33 +0100 Subject: [PATCH] Fix shift into sign in cl_cin.c --- code/client/cl_cin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/cl_cin.c b/code/client/cl_cin.c index 73eecd46..cdc3ab3e 100644 --- a/code/client/cl_cin.c +++ b/code/client/cl_cin.c @@ -609,7 +609,7 @@ static unsigned int yuv_to_rgb24( long y, long u, long v ) if (g > 255) g = 255; if (b > 255) b = 255; - return LittleLong ((r)|(g<<8)|(b<<16)|(255<<24)); + return LittleLong ((unsigned long)((r)|(g<<8)|(b<<16))|(255UL<<24)); } /******************************************************************************