gui: Use uintptr_t for storing numbers in pointers

This commit is contained in:
Connor McLaughlin 2021-10-01 17:22:33 +10:00 committed by Kojin
parent dd3db3fc54
commit 2241e635c6
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ void CpuTabPage::reloadSymbolMap()
for (size_t i = 0; i < funcs.size(); i++)
{
wxString name = wxString(funcs[i].name.c_str(), wxConvUTF8);
functionList->Append(name, (void*)funcs[i].address);
functionList->Append(name, reinterpret_cast<void*>(static_cast<uintptr_t>(funcs[i].address)));
}
}
}

View File

@ -208,7 +208,7 @@ void Panels::BiosSelectorPanel::OnEnumComplete(wxCommandEvent& evt)
for (const std::pair<wxString, u32>& result : enumThread->Result)
{
const int sel = m_ComboBox->Append(result.first, reinterpret_cast<void*>(result.second));
const int sel = m_ComboBox->Append(result.first, reinterpret_cast<void*>(static_cast<uintptr_t>(result.second)));
if (currentBios == wxFileName((*m_BiosList)[result.second]))
m_ComboBox->SetSelection(sel);
}