correct type for oldlenp argument to sysctl(2) for machdep.altivec

This commit is contained in:
jsg 2020-08-30 04:18:02 +00:00
parent ca502679c1
commit fa8ea72eb8

View File

@ -131,7 +131,7 @@ check_os_altivec_support(void)
int sels[2] = {CTL_MACHDEP, CPU_ALTIVEC};
#endif
int has_vu = 0;
int len = sizeof (has_vu);
size_t len = sizeof (has_vu);
int err;
err = sysctl(sels, 2, &has_vu, &len, NULL, 0);