From 2086274b62d2c4dd2c957f16bb7b82a180dad255 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Tue, 7 Nov 2017 16:27:21 -0500 Subject: [PATCH] spriv_msl.hpp fix casting warning when setting MSL version option. --- spirv_msl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_msl.hpp b/spirv_msl.hpp index 356431c..dc70ae6 100644 --- a/spirv_msl.hpp +++ b/spirv_msl.hpp @@ -74,7 +74,7 @@ static const uint32_t kPushConstBinding = 0; class CompilerMSL : public CompilerGLSL { public: -#define MAKE_MSL_VERSION(major, minor, patch) (((major)*1e4) + ((minor)*1e2) + (patch)) +#define MAKE_MSL_VERSION(major, minor, patch) (((major)*10000) + ((minor)*100) + (patch)) // Options for compiling to Metal Shading Language struct Options