diff options
author | Araq <rumpf_a@web.de> | 2015-04-23 02:08:30 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-23 02:08:30 +0200 |
commit | a7a2fa63aa7687a1255bb0ee9562a03cee26fa99 (patch) | |
tree | c306518032030b4cffd6a96962ca115070d2ebcf /compiler | |
parent | 3b00d9cc7a06fd7720d56548b7139b8c52be5f33 (diff) | |
download | Nim-a7a2fa63aa7687a1255bb0ee9562a03cee26fa99.tar.gz |
fixes #2589
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semfold.nim | 2 |
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) |