Implement mul_round in checkrefs.

Missed in 19f600cfa2. In use since 2078abdcc4.

This was SVN commit r25247.
This commit is contained in:
wraitii 2021-04-12 16:33:54 +00:00
parent 5df6e688e2
commit 1b844606aa

View File

@ -99,6 +99,11 @@ sub apply_layer
elsif ($op eq 'mul') { elsif ($op eq 'mul') {
$base->{' content'} = $op1 * $op2; $base->{' content'} = $op1 * $op2;
} }
elsif ($op eq 'mul_round') {
# This is incorrect (floors instead of rounding)
# but for schema purposes it ought be fine.
$base->{' content'} = int($op1 * $op2);
}
else { else {
die "Invalid operator '$op'"; die "Invalid operator '$op'";
} }