]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/AcpiPlatformDxe/Qemu.c
OvmfPkg/AcpiPlatformDxe: Fix VS2012 IA32 build warning
[mirror_edk2.git] / OvmfPkg / AcpiPlatformDxe / Qemu.c
index 95512d1731c25420f4d945803a07f6e0b2c9b739..59152487b85b1d35c76e0afb5933246199a08bf5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   OVMF ACPI QEMU support\r
 \r
-  Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>\r
 \r
   Copyright (C) 2012-2014, Red Hat, Inc.\r
 \r
@@ -943,7 +943,7 @@ Process2ndPassCmdAddPointer (
   Blob2Remaining += Blob2->Size;\r
   ASSERT (PointerValue < Blob2Remaining);\r
 \r
-  Blob2Remaining -= PointerValue;\r
+  Blob2Remaining -= (UINTN) PointerValue;\r
   DEBUG ((EFI_D_VERBOSE, "%a: checking for ACPI header in \"%a\" at 0x%Lx "\r
     "(remaining: 0x%Lx): ", __FUNCTION__, AddPointer->PointeeFile,\r
     PointerValue, (UINT64)Blob2Remaining));\r