summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorMathijs Saey <mathsaey@vub.ac.be>2016-08-05 17:57:51 +0200
committerMathijs Saey <mathsaey@vub.ac.be>2016-08-05 17:57:51 +0200
commit2a84206e8915177addb73a9b7725fa6584010982 (patch)
tree8fee6f0d13ec14a306aedc05e29aae4e926abd52 /lib
parent815a662ecac36af95a0dbec4b665dbee29155d94 (diff)
downloadNim-2a84206e8915177addb73a9b7725fa6584010982.tar.gz
Fixed #4574
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/math.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index c088e3d7d..ce18f0030 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -360,7 +360,7 @@ proc `mod`*[T: float32|float64](x, y: T): T =
 proc `^`*[T](x, y: T): T =
   ## Computes ``x`` to the power ``y`. ``x`` must be non-negative, use
   ## `pow <#pow,float,float>` for negative exponents.
-  assert y >= 0
+  assert y >= T(0)
   var (x, y) = (x, y)
   result = 1