X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fmath%2Ffloorf.c;h=23fa5e7d56949feb6b3b4935da3e95a96362048e;hp=958abf5bd8c150c8121827bf8a8f3c97811561d2;hb=8d0a6f7a1c47b280647f292e6864b85b72c71f2e;hpb=9560b6b152efeb23cc4e570dbaea5ef333ac971f diff --git a/src/math/floorf.c b/src/math/floorf.c index 958abf5b..23fa5e7d 100644 --- a/src/math/floorf.c +++ b/src/math/floorf.c @@ -36,7 +36,7 @@ float floorf(float x) if (j0 < 23) { if (j0 < 0) { /* |x| < 1 */ /* raise inexact if x != 0 */ - if (huge+x > (float)0.0) { + if (huge+x > 0.0f) { if (i0 >= 0) /* x >= 0 */ i0 = 0; else if ((i0&0x7fffffff) != 0) @@ -47,7 +47,7 @@ float floorf(float x) if ((i0&i) == 0) return x; /* x is integral */ /* raise inexact flag */ - if (huge+x > (float)0.0) { + if (huge+x > 0.0f) { if (i0 < 0) i0 += 0x00800000>>j0; i0 &= ~i;