From 7dffe44b092eaa2f111eaf3703cb3ecf9213e21e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 19 Nov 2013 17:28:04 +0000 Subject: [PATCH] 2013-11-19 Joel Sherrill * libm/common/modfl.c: Add cast to remove compiler warning. --- newlib/ChangeLog | 4 ++++ newlib/libm/common/modfl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 16e648df3..6fd16e65c 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2013-11-19 Joel Sherrill + + * libm/common/modfl.c: Add cast to remove compiler warning. + 2013-11-19 Terraneo Federico * libc/posix/closedir.c: Fix use after free. diff --git a/newlib/libm/common/modfl.c b/newlib/libm/common/modfl.c index 32ccc9a7d..3b31c6a29 100644 --- a/newlib/libm/common/modfl.c +++ b/newlib/libm/common/modfl.c @@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE. long double modfl (long double x, long double *iptr) { - return modf(x, iptr); + return modf(x, (double *)iptr); } #endif