From 7d631f42d74942ef306197df6fe1ebed1bd234e3 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 9 Jun 2024 14:17:25 +0200 Subject: Dep/g3d: Build fix for clang on windows (cherry picked from commit a649f62a186cf5a9ebd976488fe641085a036f6a) --- dep/g3dlite/source/System.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dep/g3dlite/source/System.cpp') diff --git a/dep/g3dlite/source/System.cpp b/dep/g3dlite/source/System.cpp index 1c7d913929c..d6fbfa75679 100644 --- a/dep/g3dlite/source/System.cpp +++ b/dep/g3dlite/source/System.cpp @@ -1695,7 +1695,7 @@ std::string System::currentTimeString() { // Windows 64-bit void System::cpuid(CPUIDFunction func, uint32& eax, uint32& ebx, uint32& ecx, uint32& edx) { #if !defined(_M_ARM) && !defined(_M_ARM64) && !defined(_M_HYBRID_X86_ARM64) && !defined(_M_ARM64EC) - int regs[4] = {eax, ebx, ecx, edx}; + int regs[4] = {(int)eax, (int)ebx, (int)ecx, (int)edx}; __cpuid(regs, func); #else int regs[4] = { 0, 0, 0, 0 }; -- cgit v1.2.3