diff options
author | Hugo Granström <5092565+HugoGranstrom@users.noreply.github.com> | 2020-07-22 10:30:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 10:30:46 +0200 |
commit | 32ac1b7c9df8614510c08c0a4649131cf33f369c (patch) | |
tree | 8556b5f9616229a7d50423ba5f3e73ac360248ba | |
parent | f25454d5c6b455d95aa526b57678ec8494ac0e36 (diff) | |
download | Nim-32ac1b7c9df8614510c08c0a4649131cf33f369c.tar.gz |
fix #15033 (#15034)
-rw-r--r-- | lib/pure/math.nim | 2 |
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 |