summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c')
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
index 050da68c66..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 + (1ULL << 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 + (1ULL << Width))) {
+ if (AccessAddress >= (Address + LShiftU64 (1ULL, (UINTN)Width))) {
//
// if all datas have been written, exist
//