Commit 969274a2 authored by Thiago Macieira's avatar Thiago Macieira
Browse files

Fix Botan compilation with ICC

The __cpuid intrinsic takes int* pointers like MSVC above, not uint*.

botan.cpp(46265): error: argument of type "Botan::u32bit={unsigned int} *" is incompatible with parameter of type "int *"

(whoever thought that a file should have 46k lines needs to have their
brains examined)

Change-Id: I5128849c354e351ba771215b3290f3af8ba98987
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 0173c638
......@@ -46200,7 +46200,7 @@ bool caseless_cmp(char a, char b)
#include <ia32intrin.h>
#define CALL_CPUID(type, out) do { __cpuid(out, type); } while(0)
#define CALL_CPUID(type, out) do { __cpuid((int*)out, type); } while(0)
......@@ -46223,7 +46223,7 @@ namespace {
#elif defined(BOTAN_TARGET_ARCH_IS_X86_64) && \
* We can't safely use this on x86-32 as some 32-bit ABIs use ebx as
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment