OvmfPkg/AcpiPlatformDxe: Fix VS2012 IA32 build warning
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 25 Sep 2014 02:29:00 +0000 (02:29 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 25 Sep 2014 02:29:00 +0000 (02:29 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16170 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/AcpiPlatformDxe/Qemu.c

index 95512d1..5915248 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