X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciLib.c;h=c7423f6f799dddf81522b24b858bce7a5b324035;hp=0812bf03632ae0c4f141695b6b7521f8c7d00137;hb=6deef76382c22e736aac2830a431fb8303b90307;hpb=ff62de37300f4c1af964367a9ea0fca0f79570e8 diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c index 0812bf0363..c7423f6f79 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -2115,7 +2115,7 @@ ReadConfigData ( Stride = 1 << AccessWidth; AccessAddress += Stride; - if (AccessAddress >= (Address + (1 << Width))) { + if (AccessAddress >= (Address + LShiftU64 (1ULL, (UINTN)Width))) { // // if all datas have been read, exist // @@ -2382,7 +2382,7 @@ WriteConfigData ( Stride = 1 << AccessWidth; AccessAddress += Stride; - if (AccessAddress >= (Address + (1 << Width))) { + if (AccessAddress >= (Address + LShiftU64 (1ULL, (UINTN)Width))) { // // if all datas have been written, exist //