Skip to content

Commit

Permalink
Merge pull request #434 from shamanas/refFunc
Browse files Browse the repository at this point in the history
Fixed index checking for pointers
  • Loading branch information
alexnask committed Jun 13, 2012
2 parents 2b1389d + a8c0344 commit 445d35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/rock/middle/ArrayAccess.ooc
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 445d35c

Please sign in to comment.