diff --git a/src/remote.cc b/src/remote.cc index 58dd7233..561b3cf0 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -151,7 +151,7 @@ T read(int socket) union U { T object; - char data[sizeof(T)]; + alignas(T) char data[sizeof(T)]; U() {} ~U() { object.~T(); } } u;