mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Fix for vendor:libc using wrong types for log and sin procs.
This commit is contained in:
Vendored
+2
-2
@@ -17,5 +17,5 @@ double fabs(double x);
|
|||||||
int abs(int);
|
int abs(int);
|
||||||
double ldexp(double, int);
|
double ldexp(double, int);
|
||||||
double exp(double);
|
double exp(double);
|
||||||
float log(float);
|
double log(double);
|
||||||
float sin(float);
|
double sin(double);
|
||||||
|
|||||||
Vendored
+2
-2
@@ -90,11 +90,11 @@ exp :: proc "c" (x: f64) -> f64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@(require, linkage="strong", link_name="log")
|
@(require, linkage="strong", link_name="log")
|
||||||
log :: proc "c" (x: f32) -> f32 {
|
log :: proc "c" (x: f64) -> f64 {
|
||||||
return math.ln(x)
|
return math.ln(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
@(require, linkage="strong", link_name="sin")
|
@(require, linkage="strong", link_name="sin")
|
||||||
sin :: proc "c" (x: f32) -> f32 {
|
sin :: proc "c" (x: f64) -> f64 {
|
||||||
return math.sin(x)
|
return math.sin(x)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user