summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-23 02:08:30 +0200
committerAraq <rumpf_a@web.de>2015-04-23 02:08:30 +0200
commita7a2fa63aa7687a1255bb0ee9562a03cee26fa99 (patch)
treec306518032030b4cffd6a96962ca115070d2ebcf /compiler
parent3b00d9cc7a06fd7720d56548b7139b8c52be5f33 (diff)
downloadNim-a7a2fa63aa7687a1255bb0ee9562a03cee26fa99.tar.gz
fixes #2589
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semfold.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index 0150a3405..796dde9a6 100644
--- a/compiler/semfold.nim
+++ b/compiler/semfold.nim
@@ -524,7 +524,7 @@ proc rangeCheck(n: PNode, value: BiggestInt) =
 proc foldConv*(n, a: PNode; check = false): PNode =
   # XXX range checks?
   case skipTypes(n.typ, abstractRange).kind
-  of tyInt..tyInt64:
+  of tyInt..tyInt64, tyUInt..tyUInt64:
     case skipTypes(a.typ, abstractRange).kind
     of tyFloat..tyFloat64:
       result = newIntNodeT(int(getFloat(a)), n)