Fixed incorrect division results
This commit is contained in:
parent
65b74046e1
commit
a75aad52f6
11 changed files with 150 additions and 94 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue