mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Merge pull request #213 from Bigpet/master
Compile fix for VS (doesn't like implicit `u64 *` to `unsigned long*`)
This commit is contained in:
commit
f908a3ca78
2 changed files with 4 additions and 1 deletions
|
@ -84,7 +84,10 @@ namespace fmt{
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
std::vector<char> buffptr(length);
|
std::vector<char> buffptr(length);
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wformat-security"
|
||||||
int printlen = snprintf(buffptr.data(), length, fmt.c_str(), std::forward<Args>(parameters)...);
|
int printlen = snprintf(buffptr.data(), length, fmt.c_str(), std::forward<Args>(parameters)...);
|
||||||
|
#pragma clang diagnostic pop
|
||||||
if (printlen >= 0 && printlen < length)
|
if (printlen >= 0 && printlen < length)
|
||||||
{
|
{
|
||||||
str = string(buffptr.data(), printlen);
|
str = string(buffptr.data(), printlen);
|
||||||
|
|
|
@ -455,7 +455,7 @@ void InterpreterDisAsmFrame::Show_Val(wxCommandEvent& WXUNUSED(event))
|
||||||
|
|
||||||
if(diag->ShowModal() == wxID_OK)
|
if(diag->ShowModal() == wxID_OK)
|
||||||
{
|
{
|
||||||
u64 pc = CPU ? CPU->PC : 0x0;
|
unsigned long pc = CPU ? CPU->PC : 0x0;
|
||||||
p_pc->GetValue().ToULong(&pc, 16);
|
p_pc->GetValue().ToULong(&pc, 16);
|
||||||
Emu.GetMarkedPoints().push_back(pc);
|
Emu.GetMarkedPoints().push_back(pc);
|
||||||
remove_markedPC.push_back(Emu.GetMarkedPoints().size()-1);
|
remove_markedPC.push_back(Emu.GetMarkedPoints().size()-1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue