From 32ac1b7c9df8614510c08c0a4649131cf33f369c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Granstr=C3=B6m?= <5092565+HugoGranstrom@users.noreply.github.com> Date: Wed, 22 Jul 2020 10:30:46 +0200 Subject: [PATCH] fix #15033 (#15034) --- lib/pure/math.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/math.nim b/lib/pure/math.nim index ea44de6d33..c02bef2f79 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -958,7 +958,7 @@ proc sgn*[T: SomeNumber](x: T): int {.inline.} = {.pop.} {.pop.} -proc `^`*[T](x: T, y: Natural): T = +proc `^`*[T: SomeNumber](x: T, y: Natural): T = ## Computes ``x`` to the power ``y``. ## ## Exponent ``y`` must be non-negative, use