From ed05d54ebc5c8c236aec188f124d10224f902f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 9 Sep 2018 00:23:46 +0200 Subject: [PATCH] Use unsigned chars as aligned data types. --- include/boost/move/detail/type_traits.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/move/detail/type_traits.hpp b/include/boost/move/detail/type_traits.hpp index a3326d0..8432ca2 100644 --- a/include/boost/move/detail/type_traits.hpp +++ b/include/boost/move/detail/type_traits.hpp @@ -973,7 +973,7 @@ struct aligned_struct; template\ struct BOOST_ALIGNMENT(A) aligned_struct\ {\ - char data[Len];\ + unsigned char data[Len];\ };\ // @@ -1000,7 +1000,7 @@ template union aligned_struct_wrapper { aligned_struct aligner; - char data[sizeof(aligned_struct)]; + unsigned char data[sizeof(aligned_struct)]; }; template @@ -1015,7 +1015,7 @@ template union aligned_union { T aligner; - char data[Len]; + unsigned char data[Len]; }; template