Fixed #4574
This commit is contained in:
parent
815a662eca
commit
2a84206e89
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ proc `mod`*[T: float32|float64](x, y: T): T =
|
||||||
proc `^`*[T](x, y: T): T =
|
proc `^`*[T](x, y: T): T =
|
||||||
## Computes ``x`` to the power ``y`. ``x`` must be non-negative, use
|
## Computes ``x`` to the power ``y`. ``x`` must be non-negative, use
|
||||||
## `pow <#pow,float,float>` for negative exponents.
|
## `pow <#pow,float,float>` for negative exponents.
|
||||||
assert y >= 0
|
assert y >= T(0)
|
||||||
var (x, y) = (x, y)
|
var (x, y) = (x, y)
|
||||||
result = 1
|
result = 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue