fixed and cleaned up fp support, optimisation yet to come
[fw/sdcc] / device / lib / _uint2fs.c
index 514c0211af94fd1c67284dcacdc819953d3406f6..9b443fa9c70107f83adf5a1b3ffe92eb3f4cf2c7 100644 (file)
@@ -1,7 +1,6 @@
-float __ulong2fs (unsigned long a );
+#include <float.h>
 
 /* convert unsigned int to float */
 float __uint2fs (unsigned int ui) {
-  unsigned long ul=ui;
-  return __ulong2fs(ul);
+  return __ulong2fs(ui);
 }