zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 95fdbc579fc1df3c575baded7ec5edc1c3ce6e6d (tree)
parent 0cd31fc7ff157551cfbba5da35cd79f118d2a2e3
Author: homersimpsons <guillaume.alabre@gmail.com>
Date:   Wed,  2 Apr 2025 17:22:17 +0200

pow: fix typo 0 instead of inf
Diffstat:
Mlib/std/math/pow.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/math/pow.zig b/lib/std/math/pow.zig @@ -59,7 +59,7 @@ pub fn pow(comptime T: type, x: T, y: T) T { if (x == 0) { if (y < 0) { - // pow(+-0, y) = +- 0 for y an odd integer + // pow(+-0, y) = +-inf for y an odd integer if (isOddInteger(y)) { return math.copysign(math.inf(T), x); }