diff options
Diffstat (limited to 'compiler/magicsys.nim')
-rw-r--r-- | compiler/magicsys.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/magicsys.nim b/compiler/magicsys.nim index 38240061f..73eacc2d6 100644 --- a/compiler/magicsys.nim +++ b/compiler/magicsys.nim @@ -40,7 +40,7 @@ proc getSysMagic*(g: ModuleGraph; info: TLineInfo; name: string, m: TMagic): PSy while r != nil: if r.magic == m: # prefer the tyInt variant: - if r.typ.sons[0] != nil and r.typ.sons[0].kind == tyInt: return r + if r.typ[0] != nil and r.typ[0].kind == tyInt: return r result = r r = nextIdentIter(ti, g.systemModule.tab) if result != nil: return result @@ -123,7 +123,7 @@ proc addSonSkipIntLit*(father, son: PType) = when not defined(nimNoNilSeqs): if isNil(father.sons): father.sons = @[] let s = son.skipIntLit - add(father.sons, s) + father.sons.add(s) propagateToOwner(father, s) proc setIntLitType*(g: ModuleGraph; result: PNode) = |