bugfix: typo

This commit is contained in:
Araq
2013-06-29 01:51:42 +02:00
parent 93158a53a8
commit 8f0d0250cd

View File

@@ -358,7 +358,7 @@ proc evalVariable(c: PStackFrame, sym: PSym, flags: TEvalFlags): PNode =
assert sym.position != 0 or skResult == sym.kind
var x = c
while x != nil:
if sym.owner == c.prc:
if sym.owner == x.prc:
result = x.slots[sym.position]
assert result != nil
if not aliasNeeded(result, flags):