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 0812bf0363..050da68c66 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 + (1ULL << 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 + (1ULL << Width))) {
//
// if all datas have been written, exist
//