svn commit: trunk/uClibc/libm
vapier at uclibc.org
vapier at uclibc.org
Sat Sep 23 04:10:42 UTC 2006
Author: vapier
Date: 2006-09-22 21:10:42 -0700 (Fri, 22 Sep 2006)
New Revision: 16195
Log:
fix return casts for a bunch of functions
Modified:
trunk/uClibc/libm/float_wrappers.c
Changeset:
Modified: trunk/uClibc/libm/float_wrappers.c
===================================================================
--- trunk/uClibc/libm/float_wrappers.c 2006-09-23 04:05:33 UTC (rev 16194)
+++ trunk/uClibc/libm/float_wrappers.c 2006-09-23 04:10:42 UTC (rev 16195)
@@ -313,7 +313,7 @@
libm_hidden_proto(ilogb)
int ilogbf (float x)
{
- return (float) ilogb( (double)x );
+ return (int) ilogb( (double)x );
}
#endif
@@ -340,7 +340,7 @@
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 @@
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 @@
libm_hidden_proto(lrint)
long lrintf (float x)
{
- return (float) lrint( (double)x );
+ return (long) lrint( (double)x );
}
#endif
@@ -412,7 +412,7 @@
libm_hidden_proto(lround)
long lroundf (float x)
{
- return (float) lround( (double)x );
+ return (long) lround( (double)x );
}
#endif
More information about the uClibc-cvs
mailing list