Fixed incorrect division results

This commit is contained in:
Eduard Urbach 2025-02-22 12:54:23 +01:00
parent 65b74046e1
commit a75aad52f6
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 150 additions and 94 deletions

View file

@ -35,7 +35,7 @@ func (f *Function) CompileAssign(node *ast.Assign) error {
}
if left.Token.Kind == token.Separator && right.Token.Kind == token.Div {
return f.CompileAssignDivision(node)
return f.CompileAssignDivision(node.Expression)
}
if !ast.IsFunctionCall(right) {