diff --git a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c b/OvmfPkg/Library/NvVarsFileLib/FsAccess.c index cbae15afad..6059f0334e 100644 --- a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c +++ b/OvmfPkg/Library/NvVarsFileLib/FsAccess.c @@ -117,7 +117,7 @@ NvVarsFileReadCheckup ( } *Exists = TRUE; - *Size = FileInfo->FileSize; + *Size = (UINTN) FileInfo->FileSize; FreePool (FileInfo); } diff --git a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c index e7247ac262..e4d1d4acbd 100644 --- a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c @@ -1,7 +1,7 @@ /** @file Platform BDS customizations. - Copyright (c) 2004 - 2008, Intel Corporation.
+ Copyright (c) 2004 - 2009, Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -513,7 +513,7 @@ VisitingAPciInstance ( return Status; } - return (*(VISIT_PCI_INSTANCE_CALLBACK) Context) ( + return (*(VISIT_PCI_INSTANCE_CALLBACK)(UINTN) Context) ( Handle, PciIo, &Pci @@ -531,7 +531,7 @@ VisitAllPciInstances ( return VisitAllInstancesOfProtocol ( &gEfiPciIoProtocolGuid, VisitingAPciInstance, - (VOID*) CallBackFunction + (VOID*)(UINTN) CallBackFunction ); }