X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Fmodf.c;h=8f337ef0972024e0d01e574e9580ae28d081fea7;hb=8bb181622222f2ee3462c8b021bcae4fcdbbd37a;hp=de45069fcd994828ef0718fefdf53b74f3a6e8ea;hpb=f6ceccd92247575e4a35bc94f581a570b8052d43;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; }