Commit 3370e60dd9
Changed files (1)
std
math
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;