Fix for vendor:libc using wrong types for log and sin procs.
This commit is contained in:
1 parent
1cf7a56ba7
commit
51e90e5e96
2 files changed
+4
-4
No files matched your search
Vendored
+2
-2
@@ -90,11 +90,11 @@ exp :: proc "c" (x: f64) -> f64 {
|
||||
}
|
||||
|
||||
@(require, linkage="strong", link_name="log")
|
||||
log :: proc "c" (x: f32) -> f32 {
|
||||
log :: proc "c" (x: f64) -> f64 {
|
||||
return math.ln(x)
|
||||
}
|
||||
|
||||
@(require, linkage="strong", link_name="sin")
|
||||
sin :: proc "c" (x: f32) -> f32 {
|
||||
sin :: proc "c" (x: f64) -> f64 {
|
||||
return math.sin(x)
|
||||
}
|
||||
Reference in new issue
Block a user