[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at collabora.com
Tue Nov 21 12:18:52 UTC 2017
sc/source/core/data/document.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3669c38a9c1e0405ec4b37ba57cee05cdbf91efc
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue Nov 21 14:14:17 2017 +0200
WaE: C4334: '<<': result of 32-bit shift implicitly converted to 64 bits
Change-Id: I6e30bd1b77f0f7df01571c9f497cbde1380e73be
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();
}
More information about the Libreoffice-commits
mailing list