| author | |
| committer | |
| log | 95fdbc579fc1df3c575baded7ec5edc1c3ce6e6d |
| tree | dd882464076f187383ad03ef82fe4036a8843842 |
| parent | 0cd31fc7ff157551cfbba5da35cd79f118d2a2e3 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/math/pow.zig+1-1| ... | @@ -59,7 +59,7 @@ pub fn pow(comptime T: type, x: T, y: T) T { | ... | @@ -59,7 +59,7 @@ pub fn pow(comptime T: type, x: T, y: T) T { |
| 59 | 59 | ||
| 60 | if (x == 0) { | 60 | if (x == 0) { |
| 61 | if (y < 0) { | 61 | if (y < 0) { |
| 62 | // pow(+-0, y) = +- 0 for y an odd integer | 62 | // pow(+-0, y) = +-inf for y an odd integer |
| 63 | if (isOddInteger(y)) { | 63 | if (isOddInteger(y)) { |
| 64 | return math.copysign(math.inf(T), x); | 64 | return math.copysign(math.inf(T), x); |
| 65 | } | 65 | } |