mirror of https://github.com/PCSX2/pcsx2.git
gui: Use uintptr_t for storing numbers in pointers
This commit is contained in:
parent
dd3db3fc54
commit
2241e635c6
|
@ -152,7 +152,7 @@ void CpuTabPage::reloadSymbolMap()
|
||||||
for (size_t i = 0; i < funcs.size(); i++)
|
for (size_t i = 0; i < funcs.size(); i++)
|
||||||
{
|
{
|
||||||
wxString name = wxString(funcs[i].name.c_str(), wxConvUTF8);
|
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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,7 @@ void Panels::BiosSelectorPanel::OnEnumComplete(wxCommandEvent& evt)
|
||||||
|
|
||||||
for (const std::pair<wxString, u32>& result : enumThread->Result)
|
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]))
|
if (currentBios == wxFileName((*m_BiosList)[result.second]))
|
||||||
m_ComboBox->SetSelection(sel);
|
m_ComboBox->SetSelection(sel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue