diff options
Diffstat (limited to 'src/math/modff.c')
-rw-r--r-- | src/math/modff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/modff.c b/src/math/modff.c index 84d0b82a..90caf316 100644 --- a/src/math/modff.c +++ b/src/math/modff.c @@ -1,5 +1,4 @@ -#include <math.h> -#include <stdint.h> +#include "libm.h" float modff(float x, float *iptr) { @@ -33,5 +32,6 @@ float modff(float x, float *iptr) } u.n &= ~mask; *iptr = u.x; - return x - *iptr; + STRICT_ASSIGN(float, x, x - *iptr); + return x; } |