From f6788b91862bfe89ebe6f402260040d169db4eac Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 24 Oct 2015 23:33:52 +0200 Subject: [PATCH] d3d9: Change #define D3DSTREAMSOURCE_INSTANCEDATA to avoid shift overflow. Signed-off-by: Gerald Pfeifer Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- include/d3d9types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/d3d9types.h b/include/d3d9types.h index 3afcf89dbd9..111d2422fc3 100644 --- a/include/d3d9types.h +++ b/include/d3d9types.h @@ -178,8 +178,8 @@ #define D3DPV_DONOTCOPYDATA (1 << 0) -#define D3DSTREAMSOURCE_INDEXEDDATA (1 << 30) -#define D3DSTREAMSOURCE_INSTANCEDATA (2 << 30) +#define D3DSTREAMSOURCE_INDEXEDDATA (1u << 30) +#define D3DSTREAMSOURCE_INSTANCEDATA (2u << 30) #define D3D_MAX_SIMULTANEOUS_RENDERTARGETS 4