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