Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #434 from shamanas/refFunc

Fixed index checking for pointers
  • Loading branch information...
commit 445d35c420b07836b249faa3777a68a7d06cbd3a 2 parents 2b1389d + a8c0344
@shamanas shamanas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  source/rock/middle/ArrayAccess.ooc
View
2  source/rock/middle/ArrayAccess.ooc
@@ -115,7 +115,7 @@ ArrayAccess: class extends Expression {
}
// If we are not dealing with an ooc array or a pointer and we care about type checking, we just return true because a non overloaded access on such a type will be detected elsewhere
- if(!deepDown getType() isPointer() && !deepDown getType() instanceOf?(ArrayType)) {
+ if(deepDown getType() pointerLevel() <= 0 && !deepDown getType() instanceOf?(ArrayType)) {
return true
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.