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