make it pass windows compile

This commit is contained in:
Hongze Cheng 2022-06-01 08:34:03 +00:00
parent 8c53f98184
commit 6f94998e06
1 changed files with 4 additions and 2 deletions

View File

@ -538,7 +538,8 @@ static FORCE_INLINE int32_t tPutFloat(uint8_t* p, float f) {
union { union {
uint32_t ui; uint32_t ui;
float f; float f;
} v = {.f = f}; } v;
v.f = f;
return tPutU32(p, v.ui); return tPutU32(p, v.ui);
} }
@ -547,7 +548,8 @@ static FORCE_INLINE int32_t tPutDouble(uint8_t* p, double d) {
union { union {
uint64_t ui; uint64_t ui;
double d; double d;
} v = {.d = d}; } v;
v.d = d;
return tPutU64(p, v.ui); return tPutU64(p, v.ui);
} }