提交 6f94998e 编写于 作者: H Hongze Cheng

make it pass windows compile

上级 8c53f981
...@@ -538,7 +538,8 @@ static FORCE_INLINE int32_t tPutFloat(uint8_t* p, float f) { ...@@ -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) { ...@@ -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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册