d3d9: Change #define D3DSTREAMSOURCE_INSTANCEDATA to avoid shift overflow.

Gerald Pfeifer gerald at pfeifer.com
Sat Oct 24 16:33:52 CDT 2015


Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
 include/d3d9types.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/d3d9types.h b/include/d3d9types.h
index 3afcf89..111d242 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
 
-- 
2.6.1



More information about the wine-patches mailing list