File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments