X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Fmodff.c;h=d535314caa98a16835a0492139432dfc5e3c1f64;hp=7ab10a5a40fdb38462bf6bbf3ec09d36d27e8f7a;hb=f1278a53fcf066facd97c8c782a412b39d0f2bc4;hpb=21d0f5c85063b4e1f8168fc53fb4238d78375f08 diff --git a/src/math/modff.c b/src/math/modff.c index 7ab10a5..d535314 100644 --- a/src/math/modff.c +++ b/src/math/modff.c @@ -37,7 +37,7 @@ float modff(float x, float *iptr) SET_FLOAT_WORD(x, ix & 0x80000000); /* return +-0 */ return x; } - SET_FLOAT_WORD(*iptr, i0&(~i)); + SET_FLOAT_WORD(*iptr, i0&~i); return x - *iptr; } else { /* no fraction part */ uint32_t ix;