fix(processor): sysctlbyname uses size_t length

This commit is contained in:
phaneron 2025-04-01 15:36:32 -04:00
parent 339f9018d4
commit a2c5663601

View file

@ -24,7 +24,7 @@ uint32_t OsGetProcessorFeaturesEx(int32_t& vendorID) {
features = 0x80000000; features = 0x80000000;
int32_t feature; int32_t feature;
int32_t length; size_t length;
length = sizeof(feature); length = sizeof(feature);
if (sysctlbyname("hw.optional.mmx", &feature, &length, nullptr, 0) == 0 && feature) { if (sysctlbyname("hw.optional.mmx", &feature, &length, nullptr, 0) == 0 && feature) {