From ab8241ad42635693df8a50326ebb24d52343059a Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Tue, 27 Aug 2019 12:21:04 +0200 Subject: minor stuff --- compiler/transf.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/transf.nim') diff --git a/compiler/transf.nim b/compiler/transf.nim index 555583685..6be688ace 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -718,7 +718,7 @@ proc transformCase(c: PTransf, n: PNode): PTransNode = result.add(elseBranch) elif result.PNode.lastSon.kind != nkElse and not ( skipTypes(n.sons[0].typ, abstractVarRange).kind in - {tyInt..tyInt64, tyChar, tyEnum, tyUInt..tyUInt32}): + {tyInt..tyInt64, tyChar, tyEnum, tyUInt..tyUInt64}): # fix a stupid code gen bug by normalizing: var elseBranch = newTransNode(nkElse, n.info, 1) elseBranch[0] = newTransNode(nkNilLit, n.info, 0) -- cgit 1.4.1-2-gfad0