aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2025-01-01 21:18:47 +0100
committerGitHub <noreply@github.com>2025-01-01 21:18:47 +0100
commit8763b15c614ea2021158630f8793f1d9e29a171f (patch)
tree6c6a73b02bc201cad2eecf96bfa79435022b44b6
parenta2a0a2c8d8cdd4821902cd162b818b3d1810d9b6 (diff)
parent51e90e5e96d409086f96a9c3e1b5fbbdbb44eecc (diff)
Merge pull request #4643 from karl-zylinski/fix-vendor-libc-sin-log-types
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)
}