[Solved] how to correctly cast uint32_t to unsigned
load of misaligned address 0x6280033f410a for type ‘uint32_t’ … How do I need to fix this? You need to create an aligned object (such as a variable), and copy the content from the misaligned address: std::uint32_t u32; std::memcpy(&u32, data, sizeof u32); This assumes that you intend to read sizeof u32 bytes from that address and … Read more