projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed and cleaned up fp support, optimisation yet to come
[fw/sdcc]
/
device
/
lib
/
_uchar2fs.c
diff --git
a/device/lib/_uchar2fs.c
b/device/lib/_uchar2fs.c
index 475253016026ebb3a66a659fa44e0c0433d664df..3e9198820efbe08e82d57d25169101acae23ab91 100644
(file)
--- a/
device/lib/_uchar2fs.c
+++ b/
device/lib/_uchar2fs.c
@@
-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);
}