Skip to content

Commit 52fb3c0

Browse files
committed
Fix cos on linus
1 parent 842d3af commit 52fb3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/FirebladeMath/Functions/cos.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public func cos(_ angleRad: Float) -> Float {
1616
#if os(macOS) || os(iOS) || os(tvOS)
1717
return Darwin.cosf(angleRad)
1818
#elseif os(Linux)
19-
return Glibc.cosf(floatAngleRadians)
19+
return Glibc.cosf(angleRad)
2020
#endif
2121
}
2222

@@ -30,6 +30,6 @@ public func cos(_ angleRad: Double) -> Double {
3030
#if os(macOS) || os(iOS) || os(tvOS)
3131
return Darwin.cos(angleRad)
3232
#elseif os(Linux)
33-
return Glibc.cos(doubleAngleRadians)
33+
return Glibc.cos(angleRad)
3434
#endif
3535
}

0 commit comments

Comments
 (0)