1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v: fix build and failing tests on arm64 (#12840)

This commit is contained in:
spaceface
2021-12-15 08:00:38 +01:00
committed by GitHub
parent 1c629f4a93
commit d13fe7843c
4 changed files with 19 additions and 4 deletions

View File

@@ -287,7 +287,8 @@ pub fn (mut t Transformer) check_safe_array(mut node ast.IndexExpr) {
name := node.left
match index {
ast.IntegerLiteral {
node.is_direct = t.index.safe_access(name.str(), index.val.int())
is_direct := t.index.safe_access(name.str(), index.val.int())
node.is_direct = is_direct
}
ast.RangeExpr {
if index.has_high {