diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-23 09:18:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-23 09:21:48 +0200 |
commit | a6b01d01f77f84517d267bdfe31de91b9050a70c (patch) | |
tree | 17390594f4256a142884d09c4fc1cff5282d3b9a | |
parent | 72f368f6bfedb680ffcbd1c7fe28e8fc6d19ad2b (diff) |
gcc4.7.3 complains about the asserts
'error: comparison is always true due to limited range of data type'
So just make the underlying type be 'signed int'
Change-Id: Ibf4ff72d85d33e88b7506289c622d34773ca259a
-rw-r--r-- | include/o3tl/typed_flags_set.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/o3tl/typed_flags_set.hxx b/include/o3tl/typed_flags_set.hxx index 016f8eb805a8..4622d41e19f8 100644 --- a/include/o3tl/typed_flags_set.hxx +++ b/include/o3tl/typed_flags_set.hxx @@ -29,9 +29,9 @@ namespace o3tl { template<typename T> struct typed_flags {}; -#if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ <= 6 && \ +#if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ <= 7 && \ !defined __clang__ -#define O3TL_STD_UNDERLYING_TYPE_E unsigned int +#define O3TL_STD_UNDERLYING_TYPE_E signed int #else #define O3TL_STD_UNDERLYING_TYPE_E typename std::underlying_type<E>::type #endif |