This commit is contained in:
Araq 2014-08-19 20:28:51 +02:00
commit 1deb9820f5
2 changed files with 16 additions and 1 deletions

View file

@ -99,7 +99,7 @@ proc isPureObject(typ: PType): bool =
proc getOrdValue(n: PNode): BiggestInt =
case n.kind
of nkCharLit..nkInt64Lit: result = n.intVal
of nkCharLit..nkUInt64Lit: result = n.intVal
of nkNilLit: result = 0
of nkHiddenStdConv: result = getOrdValue(n.sons[1])
else: