You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most primitives are generally aligned to their size, although this is platform-specific behavior. In particular, on x86 u64 and f64 are only aligned to 32 bits.
The C++ compiler on that platform (at least the one UE uses) aligns u64 inside classes and structs to 4 bytes. I had expected repr(C) in rust do to the same (especially having read the part above from the reference) and was surprised it didn't. As I assume that some code somewhere relies on u64 being aligned to 8 bytes on that target, should the documentation in the reference be changed to reflect this difference?