You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
lib/libm/math: Fix int type in float union, uint64_t should be uint32_t.
A float is 32-bits wide.
This commit is contained in:
+3
-3
@@ -30,9 +30,9 @@ typedef float float_t;
|
||||
typedef union {
|
||||
float f;
|
||||
struct {
|
||||
uint64_t m : 23;
|
||||
uint64_t e : 8;
|
||||
uint64_t s : 1;
|
||||
uint32_t m : 23;
|
||||
uint32_t e : 8;
|
||||
uint32_t s : 1;
|
||||
};
|
||||
} float_s_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user