summaryrefslogtreecommitdiff
path: root/libm/float_wrappers.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-09-23 04:10:42 +0000
committerMike Frysinger <vapier@gentoo.org>2006-09-23 04:10:42 +0000
commit6eaed4179b5d5e38810c345465e0ae21ebbdbb9d (patch)
treeefc0928328c88049886f1a3f5a5716f19657de58 /libm/float_wrappers.c
parenta8d3a36f81e3f1e59b40b589dbfbc2044786c953 (diff)
fix return casts for a bunch of functions
Diffstat (limited to 'libm/float_wrappers.c')
-rw-r--r--libm/float_wrappers.c10
1 files changed, 5 insertions, 5 deletions
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