From: Oliver Kurth Date: Mon, 15 Apr 2019 18:33:00 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abd87bf17c9869900dad292a458b871de90c4c7d;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/x86cpuid.h b/open-vm-tools/lib/include/x86cpuid.h index f9a696346..378f26171 100644 --- a/open-vm-tools/lib/include/x86cpuid.h +++ b/open-vm-tools/lib/include/x86cpuid.h @@ -1509,9 +1509,9 @@ static INLINE Bool CPUID_IsRawVendor(CPUIDRegs *id0, const char* vendor) { // hard to get strcmp() in some environments, so do it in the raw - return (id0->ebx == *(const uint32 *) (vendor + 0) && - id0->ecx == *(const uint32 *) (vendor + 4) && - id0->edx == *(const uint32 *) (vendor + 8)); + return (id0->ebx == *(const uint32 *)(uintptr_t) (vendor + 0) && + id0->ecx == *(const uint32 *)(uintptr_t) (vendor + 4) && + id0->edx == *(const uint32 *)(uintptr_t) (vendor + 8)); } static INLINE Bool