base/dispatch.c: Missing parens on call to `get_hwcaps'.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 18 May 2016 09:29:03 +0000 (10:29 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 22 May 2016 14:58:12 +0000 (15:58 +0100)
This is only a problem on ARM hosts, but it breaks the build for
them (unsurprisingly).  For some reason, the test machinery I used
before committing the broken code came up with a slightly different
host-platform name which the configure script didn't recognize, so the
test environment didn't try to compile the broken code.

base/dispatch.c

index f5a25c8..b2a032e 100644 (file)
@@ -519,7 +519,7 @@ int cpu_feature_p(int feat)
 #endif
 #ifdef CAPMAP
 #  define FEATP__CASE(feat, tok)                                       \
-       CASE_CPUFEAT(feat, tok, get_hwcaps & HF_##feat)
+       CASE_CPUFEAT(feat, tok, get_hwcaps() & HF_##feat)
     CAPMAP(FEATP__CASE)
 #undef FEATP__CASE
 #endif