From a0991fc73f2c7d9b485f2c065487da38cd957a83 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sun, 25 Oct 2015 01:17:59 +0200 Subject: [PATCH] d3d8: Redefine D3DVSD_MAKETOKENTYPE to avoid shift overflow (warnings). Signed-off-by: Gerald Pfeifer Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- include/d3d8types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/d3d8types.h b/include/d3d8types.h index 35068053b83..163ee4fc381 100644 --- a/include/d3d8types.h +++ b/include/d3d8types.h @@ -267,7 +267,7 @@ typedef enum _D3DVSDT_TYPE { #define D3DVSD_MAKETOKENTYPE(TokenType) \ - ((TokenType << D3DVSD_TOKENTYPESHIFT) & D3DVSD_TOKENTYPEMASK) + (((unsigned)TokenType << D3DVSD_TOKENTYPESHIFT) & D3DVSD_TOKENTYPEMASK) #define D3DVSD_CONST(ConstantAddress, Count) \ (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_CONSTMEM) | ((Count) << D3DVSD_CONSTCOUNTSHIFT) | (ConstantAddress))