Merge pull request #776 from lifpan/master

Fix build warning.
This commit is contained in:
Hans-Kristian Arntzen 2018-11-28 11:34:32 +01:00 committed by GitHub
commit fbae10db15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -459,7 +459,7 @@ void Parser::parse(const Instruction &instruction)
{ {
uint32_t id = ops[0]; uint32_t id = ops[0];
uint32_t width = ops[1]; uint32_t width = ops[1];
bool signedness = ops[2]; bool signedness = ops[2] != 0;
auto &type = set<SPIRType>(id); auto &type = set<SPIRType>(id);
switch (width) switch (width)
{ {