fixed and cleaned up fp support, optimisation yet to come
[fw/sdcc] / device / lib / _uchar2fs.c
index 475253016026ebb3a66a659fa44e0c0433d664df..3e9198820efbe08e82d57d25169101acae23ab91 100644 (file)
@@ -1,7 +1,6 @@
-float __ulong2fs (unsigned long a );
+#include <float.h>
 
 /* convert unsigned char to float */
 float __uchar2fs (unsigned char uc) {
-  unsigned long ul=uc;
-  return __ulong2fs(ul);
+  return __ulong2fs(uc);
 }