mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
std.math: Correct math.nan usage in cos
This commit is contained in:
parent
89d71a960b
commit
3370e60dd9
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user