diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-06 09:26:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 09:26:14 +0100 |
commit | d6dbc50793d95e5ad974ae979803775c4c6d2fae (patch) | |
tree | da19d70c8bece89c932072062feef21de6a5ef9f /compiler | |
parent | 7a0191ac7ea2c3adfa303cfd6b1d1759a361e5c7 (diff) | |
parent | db51eb3e32c5ac41995f4084be399a18ee47cf86 (diff) | |
download | Nim-d6dbc50793d95e5ad974ae979803775c4c6d2fae.tar.gz |
Merge pull request #9873 from arnetheduck/uints-are-consts [bac,ö
allow uints to appear in deep constant expressions
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/trees.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/trees.nim b/compiler/trees.nim index fb523de9d..ca2360e12 100644 --- a/compiler/trees.nim +++ b/compiler/trees.nim @@ -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]) |