allow uints to appear in deep constant expressions

(cherry picked from commit db51eb3e32)
This commit is contained in:
Jacek Sieka
2018-12-05 20:33:49 -06:00
committed by narimiran
parent c16fa63f5e
commit a29ab5e65f

View File

@@ -92,8 +92,7 @@ proc isCaseObj*(n: PNode): bool =
proc isDeepConstExpr*(n: PNode): bool =
case n.kind
of nkCharLit..nkInt64Lit, nkStrLit..nkTripleStrLit,
nkFloatLit..nkFloat64Lit, nkNilLit:
of nkCharLit..nkNilLit:
result = true
of nkExprEqExpr, nkExprColonExpr, nkHiddenStdConv, nkHiddenSubConv:
result = isDeepConstExpr(n.sons[1])