Work around MSVC warning.
This commit is contained in:
parent
ea3cd74426
commit
34a6a45fba
@ -1717,7 +1717,7 @@ uint32_t Compiler::evaluate_spec_constant_u32(const SPIRConstantOp &spec) const
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OpSNegate:
|
case OpSNegate:
|
||||||
value = -eval_u32(spec.arguments[0]);
|
value = uint32_t(-int32_t(eval_u32(spec.arguments[0])));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OpSelect:
|
case OpSelect:
|
||||||
|
Loading…
Reference in New Issue
Block a user