make tests green again

This commit is contained in:
Araq 2016-11-01 07:16:07 +01:00
commit 65801e4b6e
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ proc getSysMagic*(name: string, m: TMagic): PSym =
if r.kind == skStub: loadStub(r)
if r.magic == m:
# prefer the tyInt variant:
if r.typ.sons[0].kind == tyInt: return r
if r.typ.sons[0] != nil and r.typ.sons[0].kind == tyInt: return r
result = r
r = nextIdentIter(ti, systemModule.tab)
if result != nil: return result