Kaydet (Commit) 2aa61f07 authored tarafından Jochen Nitschke's avatar Jochen Nitschke

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/28977Reviewed-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
üst cea85372
...@@ -80,7 +80,7 @@ struct is_typed_flags { ...@@ -80,7 +80,7 @@ struct is_typed_flags {
#if !HAVE_CXX11_CONSTEXPR || HAVE_CXX14_CONSTEXPR #if !HAVE_CXX11_CONSTEXPR || HAVE_CXX14_CONSTEXPR
assert(detail::isNonNegative(value)); assert(detail::isNonNegative(value));
assert( 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 // avoid "operands don't affect result" warnings when M
// covers all bits of the underlying type // covers all bits of the underlying type
|| (value & ~M) == 0); || (value & ~M) == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment