include: Base D3DVSD_TOKENTYPEMASK on an unsigned constant to avoid avoid shift overflows.

This commit is contained in:
Gerald Pfeifer 2015-08-27 00:10:39 +02:00 committed by Alexandre Julliard
parent 93ed5d3ba3
commit 46365d4873
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ typedef enum _D3DVSDT_TYPE {
#define D3DVSD_CONSTCOUNTMASK (0xF << D3DVSD_CONSTCOUNTSHIFT) #define D3DVSD_CONSTCOUNTMASK (0xF << D3DVSD_CONSTCOUNTSHIFT)
#define D3DVSD_DATALOADTYPEMASK (0x1 << D3DVSD_DATALOADTYPESHIFT) #define D3DVSD_DATALOADTYPEMASK (0x1 << D3DVSD_DATALOADTYPESHIFT)
#define D3DVSD_STREAMTESSMASK (0x1 << D3DVSD_STREAMTESSSHIFT) #define D3DVSD_STREAMTESSMASK (0x1 << D3DVSD_STREAMTESSSHIFT)
#define D3DVSD_TOKENTYPEMASK (0x7 << D3DVSD_TOKENTYPESHIFT) #define D3DVSD_TOKENTYPEMASK (0x7u << D3DVSD_TOKENTYPESHIFT)
#define D3DVSD_MAKETOKENTYPE(TokenType) \ #define D3DVSD_MAKETOKENTYPE(TokenType) \