commit 3370e60dd96828db6f9d1da36e71064303e97de6 (tree) parent 89d71a960b0f90335fded84a449a84806bb6f661 Author: Marc Tiehuis <marctiehuis@gmail.com> Date: Thu, 2 May 2019 19:03:49 +1200 std.math: Correct math.nan usage in cos Diffstat:
| M | std/math/cos.zig | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/std/math/cos.zig b/std/math/cos.zig @@ -48,7 +48,7 @@ fn cos_(comptime T: type, x_: T) T { var x = x_; if (math.isNan(x) or math.isInf(x)) { - return math.nan(f32); + return math.nan(T); } var sign = false;