Added array type

This commit is contained in:
2025-02-09 20:25:37 +01:00
parent c69f1aab5c
commit 7634244c56
13 changed files with 71 additions and 22 deletions

View File

@ -83,7 +83,7 @@ func (f *Function) ExpressionToRegister(node *expression.Expression, register cp
return nil, err
}
if typ == types.PointerAny && right.Token.Kind == token.Identifier && f.VariableByName(right.Token.Text(f.File.Bytes)).Type == types.PointerAny {
if typ == types.AnyPointer && right.Token.Kind == token.Identifier && f.VariableByName(right.Token.Text(f.File.Bytes)).Type == types.AnyPointer {
typ = types.Int
}