diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-11-21 14:14:17 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-11-21 14:14:17 +0200 |
commit | 3669c38a9c1e0405ec4b37ba57cee05cdbf91efc (patch) | |
tree | bb8f0633ed87d2d87aabc72640b0ccb404e71aaa /sc | |
parent | 7c1577ae16cd7ae402d1f61d831232c783bb9df6 (diff) |
WaE: C4334: '<<': result of 32-bit shift implicitly converted to 64 bits
Change-Id: I6e30bd1b77f0f7df01571c9f497cbde1380e73be
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index a53258a2fb70..828e9cd0871d 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -6750,7 +6750,7 @@ ScMutationGuard::ScMutationGuard(ScDocument* pDocument, ScMutationGuardFlags nFl (void) mpDocument; for (unsigned b = 0; b < static_cast<std::size_t>(ScMutationGuardFlags::N); b++) { - if (static_cast<std::size_t>(mnFlags) & (1 << b)) + if (static_cast<std::size_t>(mnFlags) & (static_cast<std::size_t>(1) << b)) { assert(mpDocument->maMutationGuard[b].try_lock()); } @@ -6762,7 +6762,7 @@ ScMutationGuard::~ScMutationGuard() #ifndef NDEBUG for (unsigned b = 0; b < static_cast<std::size_t>(ScMutationGuardFlags::N); b++) { - if (static_cast<std::size_t>(mnFlags) & (1 << b)) + if (static_cast<std::size_t>(mnFlags) & (static_cast<std::size_t>(1) << b)) { mpDocument->maMutationGuard[b].unlock(); } |