From 6eaed4179b5d5e38810c345465e0ae21ebbdbb9d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 23 Sep 2006 04:10:42 +0000 Subject: fix return casts for a bunch of functions --- libm/float_wrappers.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libm') diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c index fdafd9489..ab424d300 100644 --- a/libm/float_wrappers.c +++ b/libm/float_wrappers.c @@ -313,7 +313,7 @@ float hypotf (float x, float y) libm_hidden_proto(ilogb) int ilogbf (float x) { - return (float) ilogb( (double)x ); + return (int) ilogb( (double)x ); } #endif @@ -340,7 +340,7 @@ float lgammaf (float x) libm_hidden_proto(llrint) long long llrintf (float x) { - return (float) llrint( (double)x ); + return (long long) llrint( (double)x ); } #endif @@ -349,7 +349,7 @@ long long llrintf (float x) libm_hidden_proto(llround) long long llroundf (float x) { - return (float) llround( (double)x ); + return (long long) llround( (double)x ); } #endif @@ -403,7 +403,7 @@ float logf (float x) libm_hidden_proto(lrint) long lrintf (float x) { - return (float) lrint( (double)x ); + return (long) lrint( (double)x ); } #endif @@ -412,7 +412,7 @@ long lrintf (float x) libm_hidden_proto(lround) long lroundf (float x) { - return (float) lround( (double)x ); + return (long) lround( (double)x ); } #endif -- cgit v1.2.3