summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorHugo Granström <5092565+HugoGranstrom@users.noreply.github.com>2020-07-22 10:30:46 +0200
committerGitHub <noreply@github.com>2020-07-22 10:30:46 +0200
commit32ac1b7c9df8614510c08c0a4649131cf33f369c (patch)
tree8556b5f9616229a7d50423ba5f3e73ac360248ba
parentf25454d5c6b455d95aa526b57678ec8494ac0e36 (diff)
downloadNim-32ac1b7c9df8614510c08c0a4649131cf33f369c.tar.gz
fix #15033 (#15034)
-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 ea44de6d3..c02bef2f7 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