summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2012-04-16 17:56:58 -0700
committerJosh Blum2012-04-19 18:13:22 -0700
commit5a3d372c027237dad1b1d8bc55c73f3217509b8f (patch)
tree1f85ccd8dd19adea831c61b913179b6995885451
parent0595b7f2283e0aa1cdebefdac2d3a2702324727d (diff)
downloadgnuradio-5a3d372c027237dad1b1d8bc55c73f3217509b8f.tar.gz
gnuradio-5a3d372c027237dad1b1d8bc55c73f3217509b8f.tar.bz2
gnuradio-5a3d372c027237dad1b1d8bc55c73f3217509b8f.zip
volk: fix msvc __cpuid pointer cast
-rw-r--r--volk/tmpl/volk_cpu.tmpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/volk/tmpl/volk_cpu.tmpl.c b/volk/tmpl/volk_cpu.tmpl.c
index b050d8aea..94895a76f 100644
--- a/volk/tmpl/volk_cpu.tmpl.c
+++ b/volk/tmpl/volk_cpu.tmpl.c
@@ -54,7 +54,7 @@ struct VOLK_CPU volk_cpu;
//implement get cpuid for MSVC compilers using __cpuid intrinsic
#elif defined(_MSC_VER) && defined(HAVE_INTRIN_H)
#include <intrin.h>
- #define cpuid_x86(op, r) __cpuid(r, op)
+ #define cpuid_x86(op, r) __cpuid(((int*)r), op)
#if defined(_XCR_XFEATURE_ENABLED_MASK)
#define __xgetbv() _xgetbv(_XCR_XFEATURE_ENABLED_MASK)