X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fmodf.c;fp=src%2Fmath%2Fmodf.c;h=8f337ef0972024e0d01e574e9580ae28d081fea7;hb=c4359e01303da2755fe7e8033826b132eb3659b1;hp=de45069fcd994828ef0718fefdf53b74f3a6e8ea;hpb=666271c105e4137bdfa195e217799d74143370d4;p=musl diff --git a/src/math/modf.c b/src/math/modf.c index de45069f..8f337ef0 100644 --- a/src/math/modf.c +++ b/src/math/modf.c @@ -1,5 +1,4 @@ -#include -#include +#include "libm.h" double modf(double x, double *iptr) { @@ -33,5 +32,6 @@ double modf(double x, double *iptr) } u.n &= ~mask; *iptr = u.x; - return x - *iptr; + STRICT_ASSIGN(double, x, x - *iptr); + return x; }