diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-09-17 14:48:11 +0200 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-09-17 15:01:03 +0000 |
commit | 2aa61f07eccd3749d9e9f4a02f2e642bb03cad55 (patch) | |
tree | 81aad1518cb0787d9e516cbe8c58c1e4635b66b6 /include/o3tl | |
parent | Updated core (diff) | |
download | core-2aa61f07eccd3749d9e9f4a02f2e642bb03cad55.tar.gz core-2aa61f07eccd3749d9e9f4a02f2e642bb03cad55.zip |
fix warning in windows debug build
> o3tl/typed_flags_set.hxx(82) : warning C4309: ´static_cast´ :
> truncation of constant value
Change-Id: I396b68e47d682ffe90ba3afb2ebf846cf100e20c
Reviewed-on: https://gerrit.libreoffice.org/28977
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'include/o3tl')
-rw-r--r-- | include/o3tl/typed_flags_set.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/o3tl/typed_flags_set.hxx b/include/o3tl/typed_flags_set.hxx index e3ca014abfca..637fcfa6c3ff 100644 --- a/include/o3tl/typed_flags_set.hxx +++ b/include/o3tl/typed_flags_set.hxx @@ -80,7 +80,7 @@ struct is_typed_flags { #if !HAVE_CXX11_CONSTEXPR || HAVE_CXX14_CONSTEXPR assert(detail::isNonNegative(value)); assert( - static_cast<typename std::underlying_type<E>::type>(~M) == 0 + static_cast<typename std::underlying_type<E>::type>(~0) == M // avoid "operands don't affect result" warnings when M // covers all bits of the underlying type || (value & ~M) == 0); |