mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-26 12:42:15 +02:00
fixed multiplication with percent
This commit is contained in:
parent
aa2831818b
commit
e0384d3653
@ -132,8 +132,12 @@ fn eval_binary_expr(
|
||||
};
|
||||
|
||||
if let Expr::Unary(TokenKind::Percent, _) = right_expr {
|
||||
if let TokenKind::Star = op {
|
||||
right *= 0.01;
|
||||
} else {
|
||||
right *= left.clone();
|
||||
}
|
||||
}
|
||||
|
||||
Ok((
|
||||
match op {
|
||||
|
Loading…
x
Reference in New Issue
Block a user