Kaydet (Commit) 3669c38a authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: C4334: '<<': result of 32-bit shift implicitly converted to 64 bits

Change-Id: I6e30bd1b77f0f7df01571c9f497cbde1380e73be
üst 7c1577ae
......@@ -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();
}
......
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