mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-27 06:45:38 +02:00
commit
3a615bcf44
@ -297,8 +297,7 @@ const auto mp_object_def =
|
|||||||
(
|
(
|
||||||
[](auto& ctx){
|
[](auto& ctx){
|
||||||
auto& app_specific = x3::get<tag_app_specific>(ctx).get();
|
auto& app_specific = x3::get<tag_app_specific>(ctx).get();
|
||||||
union { uint32_t i; float f; } mem;
|
union { uint32_t i; float f; } mem = { _attr(ctx) };
|
||||||
mem.i = _attr(ctx);
|
|
||||||
app_specific.vis.visit_float32(mem.f);
|
app_specific.vis.visit_float32(mem.f);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -309,8 +308,7 @@ const auto mp_object_def =
|
|||||||
(
|
(
|
||||||
[](auto& ctx){
|
[](auto& ctx){
|
||||||
auto& app_specific = x3::get<tag_app_specific>(ctx).get();
|
auto& app_specific = x3::get<tag_app_specific>(ctx).get();
|
||||||
union { uint64_t i; double f; } mem;
|
union { uint64_t i; double f; } mem = { _attr(ctx) };
|
||||||
mem.i = _attr(ctx);
|
|
||||||
#if defined(TARGET_OS_IPHONE)
|
#if defined(TARGET_OS_IPHONE)
|
||||||
// ok
|
// ok
|
||||||
#elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi
|
#elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user