Implement mul_round in checkrefs.
Missed in19f600cfa2
. In use since2078abdcc4
. This was SVN commit r25247.
This commit is contained in:
parent
5df6e688e2
commit
1b844606aa
@ -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'";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user