From 5d9ea394ba8056be70788996fcb154a5e2c5dd2b Mon Sep 17 00:00:00 2001 From: pkubaj Date: Tue, 25 Jan 2022 13:35:22 +0000 Subject: [PATCH] Fix VSX detection on FreeBSD hwcap should actually be long. --- modules/core/src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index 01ed10a7fd..e8c5c20d89 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -621,7 +621,7 @@ struct HWFeatures } } #elif (defined __ppc64__ || defined __PPC64__) && defined __FreeBSD__ - unsigned int hwcap = 0; + unsigned long hwcap = 0; elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); if (hwcap & PPC_FEATURE_HAS_VSX) { elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap));