We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45defd5 + 87863c1 commit 3a615bcCopy full SHA for 3a615bc
include/msgpack/v2/x3_parse.hpp
@@ -297,8 +297,7 @@ const auto mp_object_def =
297
(
298
[](auto& ctx){
299
auto& app_specific = x3::get<tag_app_specific>(ctx).get();
300
- union { uint32_t i; float f; } mem;
301
- mem.i = _attr(ctx);
+ union { uint32_t i; float f; } mem = { _attr(ctx) };
302
app_specific.vis.visit_float32(mem.f);
303
}
304
)
@@ -309,8 +308,7 @@ const auto mp_object_def =
309
308
310
311
312
- union { uint64_t i; double f; } mem;
313
+ union { uint64_t i; double f; } mem = { _attr(ctx) };
314
#if defined(TARGET_OS_IPHONE)
315
// ok
316
#elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi
0 commit comments