summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorA. S. Budden <abudden@gmail.com>2016-05-31 13:17:40 +0100
committerA. S. Budden <abudden@gmail.com>2016-05-31 13:17:40 +0100
commit0cc7c9a13ceb1afe703d328222dace69cf84a81b (patch)
treeb202b06fff06b51ebb0add33b6dbc8b3f4972c98 /tests
parentf3fdad0eda8664f71e265b7ecc41477a7490331c (diff)
downloadNim-0cc7c9a13ceb1afe703d328222dace69cf84a81b.tar.gz
Modification to implementation of round() such that it returns a float and accepts a places argument (fixes #3473).
This also involved moving some functions around to get the hierarchy correct and the documentation for frexp was modified such that it was clear that it can return a float in either the range [-1, -0.5] or [0.5, 1].
Diffstat (limited to 'tests')
-rw-r--r--tests/overload/tstmtoverload.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/overload/tstmtoverload.nim b/tests/overload/tstmtoverload.nim
index f1944b637..75584bcab 100644
--- a/tests/overload/tstmtoverload.nim
+++ b/tests/overload/tstmtoverload.nim
@@ -10,7 +10,7 @@ template test(loopCount: int, extraI: int, testBody: stmt): stmt =
 
 template test(loopCount: int, extraF: float, testBody: stmt): stmt =
   block:
-    test(loopCount, round(extraF), testBody)
+    test(loopCount, round(extraF).int, testBody)
 
 template test(loopCount: int, testBody: stmt): stmt =
   block: