diff options
author | Damien George <damien.p.george@gmail.com> | 2018-09-27 15:19:53 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-09-27 15:19:53 +1000 |
commit | 4c08932e735e7b75f3cdd3e0931443c088e6fd68 (patch) | |
tree | 8ee7ffd6c7f90361e1b2dbac2c78665b255bcc51 /lib | |
parent | fc1bb51af57d8f01db4b6be231fd851b2016919a (diff) | |
download | micropython-4c08932e735e7b75f3cdd3e0931443c088e6fd68.tar.gz micropython-4c08932e735e7b75f3cdd3e0931443c088e6fd68.zip |
lib/libm/math: Fix int type in float union, uint64_t should be uint32_t.
A float is 32-bits wide.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/math.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libm/math.c b/lib/libm/math.c index d2c3949957..1bfa5fe93c 100644 --- a/lib/libm/math.c +++ b/lib/libm/math.c @@ -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; |