summaryrefslogtreecommitdiffstats
path: root/include/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-23 09:18:19 +0200
committerNoel Grandin <noel@peralex.com>2014-10-23 09:21:48 +0200
commita6b01d01f77f84517d267bdfe31de91b9050a70c (patch)
tree17390594f4256a142884d09c4fc1cff5282d3b9a /include/o3tl
parentsw: fix undefined casts of SwTxtInputFld (diff)
downloadcore-a6b01d01f77f84517d267bdfe31de91b9050a70c.tar.gz
core-a6b01d01f77f84517d267bdfe31de91b9050a70c.zip
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
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/typed_flags_set.hxx4
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