summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2018-12-05 20:33:49 -0600
committerJacek Sieka <arnetheduck@gmail.com>2018-12-05 20:33:49 -0600
commitdb51eb3e32c5ac41995f4084be399a18ee47cf86 (patch)
tree0f51e5e0fbbcd3e03d8d1158e9c0406e52a286be
parent467274a19aa77a4f2db5bed32425e2dc0ee71212 (diff)
downloadNim-db51eb3e32c5ac41995f4084be399a18ee47cf86.tar.gz
allow uints to appear in deep constant expressions
-rw-r--r--compiler/trees.nim3
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])