We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2dca02 commit fec4364Copy full SHA for fec4364
naga/src/proc/constant_evaluator.rs
@@ -1817,14 +1817,14 @@ impl<'a> ConstantEvaluator<'a> {
1817
} else {
1818
a.wrapping_div(b)
1819
}
1820
- }
+ },
1821
BinaryOperator::Modulo => {
1822
if b == 0 {
1823
return Err(ConstantEvaluatorError::RemainderByZero);
1824
1825
a.wrapping_rem(b)
1826
1827
1828
BinaryOperator::And => a & b,
1829
BinaryOperator::ExclusiveOr => a ^ b,
1830
BinaryOperator::InclusiveOr => a | b,
0 commit comments