d3dcompiler_43: Define BWRITER_SM1_VS and BWRITER_SM1_PS as unsigned constants.
Gerald Pfeifer
gerald at pfeifer.com
Sat Aug 8 18:47:22 CDT 2015
In the absence of us explicitly designating these two as unsigned,
they will be considered signed (since they fit into a 32-bit int),
and in consequence we'd get warnings such as
../d3dcompiler_43/d3dcompiler_private.h:538:58: warning: result of
'65535 << 16' requires 33 bits to represent, but 'int' only has 32 bits
with GCC 6 and standard warning options.
Gerald
---
dlls/d3dcompiler_43/d3dcompiler_private.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dcompiler_43/d3dcompiler_private.h b/dlls/d3dcompiler_43/d3dcompiler_private.h
index 2fafa94..988d737 100644
--- a/dlls/d3dcompiler_43/d3dcompiler_private.h
+++ b/dlls/d3dcompiler_43/d3dcompiler_private.h
@@ -532,8 +532,8 @@ enum bwritershader_param_srcmod_type
BWRITERSPSM_NOT,
};
-#define BWRITER_SM1_VS 0xfffe
-#define BWRITER_SM1_PS 0xffff
+#define BWRITER_SM1_VS 0xFFFEu
+#define BWRITER_SM1_PS 0xFFFFu
#define BWRITERPS_VERSION(major, minor) ((BWRITER_SM1_PS << 16) | ((major) << 8) | (minor))
#define BWRITERVS_VERSION(major, minor) ((BWRITER_SM1_VS << 16) | ((major) << 8) | (minor))
--
2.4.6
More information about the wine-patches
mailing list