aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Zylinski <karl@zylinski.se>2025-01-01 21:07:44 +0100
committerKarl Zylinski <karl@zylinski.se>2025-01-01 21:07:44 +0100
commit51e90e5e96d409086f96a9c3e1b5fbbdbb44eecc (patch)
tree111c01d12d98aed982927a5aaae32ee6862cd707
parent1cf7a56ba700b8a20b4fe94459db416679501793 (diff)
Fix for vendor:libc using wrong types for log and sin procs.
-rw-r--r--vendor/libc/include/math.h4
-rw-r--r--vendor/libc/math.odin4
2 files changed, 4 insertions, 4 deletions
diff --git a/vendor/libc/include/math.h b/vendor/libc/include/math.h
index 3f60d698f..9d486da11 100644
--- a/vendor/libc/include/math.h
+++ b/vendor/libc/include/math.h
@@ -17,5 +17,5 @@ double fabs(double x);
int abs(int);
double ldexp(double, int);
double exp(double);
-float log(float);
-float sin(float);
+double log(double);
+double sin(double);
diff --git a/vendor/libc/math.odin b/vendor/libc/math.odin
index 59f42dd67..af319ac6d 100644
--- a/vendor/libc/math.odin
+++ b/vendor/libc/math.odin
@@ -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)
}