diff --git a/spirv_common.hpp b/spirv_common.hpp index 1a9a539d..b5a93c7f 100644 --- a/spirv_common.hpp +++ b/spirv_common.hpp @@ -1382,7 +1382,7 @@ struct Meta { uint32_t packed_type = 0; bool packed = false; - uint32_t ib_member_index = -1; + uint32_t ib_member_index = static_cast(-1); uint32_t ib_orig_id = 0; } extended; };