d3d8: Redefine D3DVSD_MAKETOKENTYPE to avoid shift overflow (warnings).

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gerald Pfeifer 2015-10-25 01:17:59 +02:00 committed by Alexandre Julliard
parent 0ad7a0df89
commit a0991fc73f
1 changed files with 1 additions and 1 deletions

View File

@ -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))