fixes #3606
This commit is contained in:
parent
e16bd735c4
commit
969981c1da
1 changed files with 1 additions and 1 deletions
|
|
@ -1497,7 +1497,7 @@ proc hasSubnodeWith*(n: PNode, kind: TNodeKind): bool =
|
|||
|
||||
proc getInt*(a: PNode): BiggestInt =
|
||||
case a.kind
|
||||
of nkIntLit..nkUInt64Lit: result = a.intVal
|
||||
of nkCharLit..nkUInt64Lit: result = a.intVal
|
||||
else:
|
||||
internalError(a.info, "getInt")
|
||||
result = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue