Fix float32_bits union so that it always the sizeof float.

This commit is contained in:
Chip-Kerchner 2023-10-11 18:05:55 -05:00
parent 97a61d0577
commit e98e3c4783
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ typedef union
typedef union typedef union
{ {
float v; float v;
struct struct __attribute__((packed))
{ {
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
uint32_t s:1; uint32_t s:1;