From a3b29b1f1184cec2f1af33415556d3f7009b4696 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 5 Nov 2014 13:50:06 +0000 Subject: [PATCH] Fix potential alignment bug --- src/remote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote.cc b/src/remote.cc index 58dd72336..561b3cf0c 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;