diff options
Diffstat (limited to 'compiler/sighashes.nim')
-rw-r--r-- | compiler/sighashes.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim index a9d911e27..90b7001a5 100644 --- a/compiler/sighashes.nim +++ b/compiler/sighashes.nim @@ -93,7 +93,7 @@ proc hashType(c: var MD5Context, t: PType; flags: set[ConsiderFlag]) = case t.kind of tyGenericInvocation: - for i in 0 ..< sonsLen(t): + for i in 0 ..< len(t): c.hashType t.sons[i], flags of tyDistinct: if CoDistinct in flags: @@ -180,15 +180,15 @@ proc hashType(c: var MD5Context, t: PType; flags: set[ConsiderFlag]) = of tyTuple: c &= char(t.kind) if t.n != nil and CoType notin flags: - assert(sonsLen(t.n) == sonsLen(t)) - for i in 0 ..< sonsLen(t.n): + assert(len(t.n) == len(t)) + for i in 0 ..< len(t.n): assert(t.n.sons[i].kind == nkSym) c &= t.n.sons[i].sym.name.s c &= ':' c.hashType(t.sons[i], flags+{CoIgnoreRange}) c &= ',' else: - for i in 0 ..< sonsLen(t): c.hashType t.sons[i], flags+{CoIgnoreRange} + for i in 0 ..< len(t): c.hashType t.sons[i], flags+{CoIgnoreRange} of tyRange: if CoIgnoreRange notin flags: c &= char(t.kind) |