From c68e1e5be7631ff170cfbde0b9384dc696d1acad Mon Sep 17 00:00:00 2001 From: jwellbelove Date: Thu, 9 Mar 2017 10:36:55 +0000 Subject: [PATCH] Changed uint_least8_t to char in union. --- src/alignment.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/alignment.h b/src/alignment.h index 668208f8..532ef3a5 100644 --- a/src/alignment.h +++ b/src/alignment.h @@ -101,6 +101,7 @@ namespace etl //*************************************************************************** /// Aligned storage + /// LENGTH should be determined in terms of sizeof() ///\ingroup alignment //*************************************************************************** template @@ -174,7 +175,7 @@ namespace etl union { - uint_least8_t data[LENGTH]; + char data[LENGTH]; typename etl::type_with_alignment::type __etl_alignment_type__; // A POD type that has the same alignment as ALIGNMENT. }; };