From 2a84206e8915177addb73a9b7725fa6584010982 Mon Sep 17 00:00:00 2001 From: Mathijs Saey Date: Fri, 5 Aug 2016 17:57:51 +0200 Subject: Fixed #4574 --- lib/pure/math.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit 1.4.1-2-gfad0