summary refs log tree commit diff stats
path: root/tests/arithm
diff options
context:
space:
mode:
authorOscar NihlgÄrd <oscarnihlgard@gmail.com>2019-08-31 19:34:08 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-08-31 19:34:08 +0200
commit35268c500f2143e757a71846b246a1ecb31c72f8 (patch)
treeb843a8b5c75dc0b5530a1361f1456dcdc05c83de /tests/arithm
parent6e01be34efd60869c7905b1effcc47880cedfb6d (diff)
downloadNim-35268c500f2143e757a71846b246a1ecb31c72f8.tar.gz
Fix int literals and range interaction (#11197)
* Fix int literals and range interaction

* Fix test

* remove float range fix; update changelog
Diffstat (limited to 'tests/arithm')
-rw-r--r--tests/arithm/tarithm.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/arithm/tarithm.nim b/tests/arithm/tarithm.nim
index 1150af951..a79f897a7 100644
--- a/tests/arithm/tarithm.nim
+++ b/tests/arithm/tarithm.nim
@@ -142,5 +142,5 @@ block tsubrange:
   var level: n16 = 1
   let maxLevel: n16 = 1
 
-  level = min(level + 2, maxLevel)
+  level = min(level + 2, maxLevel).n16
   doAssert level == 1