1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 17:02:06 +03:00

Fix potential alignment bug

This commit is contained in:
Maxime Coste 2014-11-05 13:50:06 +00:00
parent 0d620c3905
commit a3b29b1f11

View File

@ -151,7 +151,7 @@ T read(int socket)
union U union U
{ {
T object; T object;
char data[sizeof(T)]; alignas(T) char data[sizeof(T)];
U() {} U() {}
~U() { object.~T(); } ~U() { object.~T(); }
} u; } u;