From 98602a93c8ad8d11665185243d02aa85495623c5 Mon Sep 17 00:00:00 2001 From: Marc Van de Wiele Date: Tue, 21 May 2024 20:51:01 +0200 Subject: [PATCH] Fix CI / Win64-Analysis checks --- src/ui/win32/bindings/MemoryViewerControlBinding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/win32/bindings/MemoryViewerControlBinding.cpp b/src/ui/win32/bindings/MemoryViewerControlBinding.cpp index 6aafcc12..757c3bb3 100644 --- a/src/ui/win32/bindings/MemoryViewerControlBinding.cpp +++ b/src/ui/win32/bindings/MemoryViewerControlBinding.cpp @@ -333,7 +333,7 @@ bool MemoryViewerControlBinding::OnPaste(bool bShiftHeld) auto nAddress = m_pViewModel.GetAddress(); const auto& pEmulatorContext = ra::services::ServiceLocator::Get(); std::wstring sClipboardText = ra::services::ServiceLocator::Get().GetText(); - const auto nBytesForSize = ra::data::MemSizeBytes(m_pViewModel.GetSize()); + const size_t nBytesForSize = ra::data::MemSizeBytes(m_pViewModel.GetSize()); std::wstring sError; if (sClipboardText.empty()) @@ -356,7 +356,7 @@ bool MemoryViewerControlBinding::OnPaste(bool bShiftHeld) } pEmulatorContext.WriteMemory(nAddress, m_pViewModel.GetSize(), nValue); - nAddress += nBytesForSize; + nAddress += static_cast(nBytesForSize); // Single mode writes only the first value else multi mode (shift) writes every values if (!bShiftHeld)