all repos — mgba @ d7db136ebe4e6523963118282833286da47d7a0b

mGBA Game Boy Advance Emulator

Qt: Fix build on MSVC
Vicki Pfau vi@endrift.com
Fri, 11 Dec 2020 20:59:46 -0800
commit

d7db136ebe4e6523963118282833286da47d7a0b

parent

21c5e7ae9779a4f5557105675971305e34bbc14c

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/ReportView.cppsrc/platform/qt/ReportView.cpp

@@ -415,9 +415,9 @@

bool ReportView::cpuid(unsigned id, unsigned sub, unsigned* regs) { if (s_cpuidMax == 0xFFFFFFFF) { #ifdef _MSC_VER - __cpuid(reinterpret_cast<int*>(regs.data()), 0); + __cpuid(reinterpret_cast<int*>(regs), 0); s_cpuidMax = regs[0]; - __cpuid(reinterpret_cast<int*>(regs.data()), 0x80000000); + __cpuid(reinterpret_cast<int*>(regs, 0x80000000); s_cpuidExtMax = regs[0]; #else s_cpuidMax = __get_cpuid_max(0, nullptr);