Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

math.hypot: fix incorrect over/underflow behavior #19472

Merged
merged 10 commits into from
May 30, 2024
Prev Previous commit
Next Next commit
Comment out comptime int test case
  • Loading branch information
expikr authored May 27, 2024
commit 1910659a17498994cc60035e6be293a9d9de0735
2 changes: 1 addition & 1 deletion lib/std/math/hypot.zig
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const hypot_test_cases = .{
};

test hypot {
try expect(hypot(3, 4) == 5);
// try expect(hypot(3, 4) == 5);
try expect(hypot(0.3, 0.4) == 0.5);
}

Expand Down