mirror of https://github.com/acidanthera/audk.git
MdeModulePkg PciBusDxe: Add typecast to eliminate possible "loss of precision" warning.
Signed-off-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12978 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4883124668
commit
571e9831be
|
@ -566,8 +566,8 @@ GatherPpbInfo (
|
|||
// 0 - the bridge supports only 32 bit addresses.
|
||||
// 1 - the bridge supports 64-bit addresses.
|
||||
//
|
||||
PrefetchableMemoryBase = PMemBaseLimit & 0xffff;
|
||||
PrefetchableMemoryLimit = PMemBaseLimit >> 16;
|
||||
PrefetchableMemoryBase = (UINT16)(PMemBaseLimit & 0xffff);
|
||||
PrefetchableMemoryLimit = (UINT16)(PMemBaseLimit >> 16);
|
||||
if (!EFI_ERROR (Status) &&
|
||||
(PrefetchableMemoryBase & 0x000f) == 0x0001 &&
|
||||
(PrefetchableMemoryLimit & 0x000f) == 0x0001) {
|
||||
|
|
Loading…
Reference in New Issue