about summary refs log tree commit diff
path: root/src/math/sincosl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/sincosl.c')
-rw-r--r--src/math/sincosl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/math/sincosl.c b/src/math/sincosl.c
index 2c600801..d3ac1c4c 100644
--- a/src/math/sincosl.c
+++ b/src/math/sincosl.c
@@ -4,7 +4,10 @@
 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
 void sincosl(long double x, long double *sin, long double *cos)
 {
-	sincos(x, (double *)sin, (double *)cos);
+	double sind, cosd;
+	sincos(x, &sind, &cosd);
+	*sin = sind;
+	*cos = cosd;
 }
 #elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
 void sincosl(long double x, long double *sin, long double *cos)