Use spv_result_t instead of bool

Using bool is confusing here, and results in an MSVC warning about an
implicit cast to bool.
This commit is contained in:
Arseny Kapoulkine 2018-07-09 09:42:02 -07:00 committed by David Neto
parent 6e550f4181
commit ead54bbd91

View File

@ -282,7 +282,7 @@ spv_result_t ExtensionCheck(ValidationState_t& _, const Instruction* inst) {
spv_result_t VersionCheck(ValidationState_t& _, const Instruction* inst) {
const auto opcode = inst->opcode();
spv_opcode_desc inst_desc;
const bool r = _.grammar().lookupOpcode(opcode, &inst_desc);
const spv_result_t r = _.grammar().lookupOpcode(opcode, &inst_desc);
assert(r == SPV_SUCCESS);
(void)r;