Skip to content

Commit 9a76604

Browse files
committed
Fix CI / Win64-Analysis checks
1 parent 0065969 commit 9a76604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/win32/bindings/MemoryViewerControlBinding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ bool MemoryViewerControlBinding::OnPaste(bool bShiftHeld)
333333
auto nAddress = m_pViewModel.GetAddress();
334334
const auto& pEmulatorContext = ra::services::ServiceLocator::Get<ra::data::context::EmulatorContext>();
335335
std::wstring sClipboardText = ra::services::ServiceLocator::Get<ra::services::IClipboard>().GetText();
336-
const auto nBytesForSize = ra::data::MemSizeBytes(m_pViewModel.GetSize());
336+
const size_t nBytesForSize = ra::data::MemSizeBytes(m_pViewModel.GetSize());
337337
std::wstring sError;
338338

339339
if (sClipboardText.empty())
@@ -356,7 +356,7 @@ bool MemoryViewerControlBinding::OnPaste(bool bShiftHeld)
356356
}
357357

358358
pEmulatorContext.WriteMemory(nAddress, m_pViewModel.GetSize(), nValue);
359-
nAddress += nBytesForSize;
359+
nAddress += gsl::narrow_cast<ra::ByteAddress>(nBytesForSize);
360360

361361
// Single mode writes only the first value else multi mode (shift) writes every values
362362
if (!bShiftHeld)

0 commit comments

Comments
 (0)