about summary refs log tree commit diff
path: root/src/math/ceilf.c
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-13 20:24:23 +0100
committernsz <nsz@port70.net>2012-03-13 20:24:23 +0100
commit8d0a6f7a1c47b280647f292e6864b85b72c71f2e (patch)
tree949de14dac812cbd118fdb8fc8d9941790ab2397 /src/math/ceilf.c
parent9560b6b152efeb23cc4e570dbaea5ef333ac971f (diff)
downloadmusl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.tar.gz
musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.tar.xz
musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.zip
math cleanup: use 1.0f instead of (float)1.0
Diffstat (limited to 'src/math/ceilf.c')
-rw-r--r--src/math/ceilf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/ceilf.c b/src/math/ceilf.c
index d83066a5..d22688a7 100644
--- a/src/math/ceilf.c
+++ b/src/math/ceilf.c
@@ -27,7 +27,7 @@ float ceilf(float x)
 	if (j0 < 23) {
 		if (j0 < 0) {
 			/* raise inexact if x != 0 */
-			if (huge+x > (float)0.0) {
+			if (huge+x > 0.0f) {
 				/* return 0*sign(x) if |x|<1 */
 				if (i0 < 0)
 					i0 = 0x80000000;
@@ -39,7 +39,7 @@ float ceilf(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;