| author | |
| committer | |
| log | 3370e60dd96828db6f9d1da36e71064303e97de6 |
| tree | d960b063bc424e1fab92c2184deab22d1c425c1a |
| parent | 89d71a960b0f90335fded84a449a84806bb6f661 |
1 files changed, 1 insertions(+), 1 deletions(-)
std/math/cos.zig+1-1| ... | ... | @@ -48,7 +48,7 @@ fn cos_(comptime T: type, x_: T) T { |
| 48 | 48 | |
| 49 | 49 | var x = x_; |
| 50 | 50 | if (math.isNan(x) or math.isInf(x)) { |
| 51 | return math.nan(f32); | |
| 51 | return math.nan(T); | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | var sign = false; |