From b21525bcceb2386b6bd6391244a4096fab58e0b1 Mon Sep 17 00:00:00 2001 From: lifpan Date: Wed, 28 Nov 2018 14:20:24 +0800 Subject: [PATCH] Fix build warning. --- spirv_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_parser.cpp b/spirv_parser.cpp index fc04a746..583af178 100644 --- a/spirv_parser.cpp +++ b/spirv_parser.cpp @@ -459,7 +459,7 @@ void Parser::parse(const Instruction &instruction) { uint32_t id = ops[0]; uint32_t width = ops[1]; - bool signedness = ops[2]; + bool signedness = ops[2] != 0; auto &type = set(id); switch (width) {