diff options
author | Chris Robinson <[email protected]> | 2019-09-13 12:51:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-13 12:51:16 -0700 |
commit | fcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (patch) | |
tree | 25ddbf3ce4bd3a4097c890aa21c137d683f893f5 /alc/helpers.cpp | |
parent | f09734b707c3036345d602cc187cc21248a54abd (diff) |
Clean up more implicit conversions
Diffstat (limited to 'alc/helpers.cpp')
-rw-r--r-- | alc/helpers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/helpers.cpp b/alc/helpers.cpp index 46be5a3b..77f96fb8 100644 --- a/alc/helpers.cpp +++ b/alc/helpers.cpp @@ -81,13 +81,13 @@ #if defined(HAVE_GCC_GET_CPUID) && (defined(__i386__) || defined(__x86_64__) || \ defined(_M_IX86) || defined(_M_X64)) using reg_type = unsigned int; -static inline void get_cpuid(int f, reg_type *regs) +static inline void get_cpuid(unsigned int f, reg_type *regs) { __get_cpuid(f, ®s[0], ®s[1], ®s[2], ®s[3]); } #define CAN_GET_CPUID #elif defined(HAVE_CPUID_INTRINSIC) && (defined(__i386__) || defined(__x86_64__) || \ defined(_M_IX86) || defined(_M_X64)) using reg_type = int; -static inline void get_cpuid(int f, reg_type *regs) +static inline void get_cpuid(unsigned int f, reg_type *regs) { (__cpuid)(regs, f); } #define CAN_GET_CPUID #endif @@ -104,7 +104,7 @@ void FillCPUCaps(int capfilter) union { reg_type regs[4]; char str[sizeof(reg_type[4])]; - } cpuinf[3] = {{ { 0, 0, 0, 0 } }}; + } cpuinf[3]{}; get_cpuid(0, cpuinf[0].regs); if(cpuinf[0].regs[0] == 0) |