[goffice] Quad: long double fix.



commit 197a1f57079396cc15d7b34b79a161b04a2895c7
Author: Morten Welinder <terra gnome org>
Date:   Mon Mar 7 23:10:32 2016 -0500

    Quad: long double fix.

 goffice/math/go-quad.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/goffice/math/go-quad.c b/goffice/math/go-quad.c
index 7bfe964..bd49547 100644
--- a/goffice/math/go-quad.c
+++ b/goffice/math/go-quad.c
@@ -1118,7 +1118,7 @@ SUFFIX(do_sin) (QUAD *res, const QUAD *a, int k)
 
                aa.h = SUFFIX(fabs)(a->h);
                aa.l = SUFFIX(fabs)(a->l);
-               SUFFIX(go_quad_init) (&qr, cos (aa.h));
+               SUFFIX(go_quad_init) (&qr, SUFFIX(cos) (aa.h));
 
                /* Newton step */
                SUFFIX(go_quad_acos) (&qn, &qr);
@@ -1128,7 +1128,7 @@ SUFFIX(do_sin) (QUAD *res, const QUAD *a, int k)
                SUFFIX(go_quad_add) (&qr, &qr, &qq);
        } else {
                QUAD qn, qd, qq;
-               SUFFIX(go_quad_init) (&qr, sin (a->h));
+               SUFFIX(go_quad_init) (&qr, SUFFIX(sin) (a->h));
 
                /* Newton step */
                SUFFIX(go_quad_asin) (&qn, &qr);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]