]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Mon, 15 Apr 2019 18:33:00 +0000 (11:33 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 15 Apr 2019 18:33:00 +0000 (11:33 -0700)
open-vm-tools/lib/include/x86cpuid.h

index f9a6963460f79e278c07b42054493ae93403fa3c..378f26171fbb20c8adac391e9b7913f7d6953dd6 100644 (file)
@@ -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