]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
Fixed NT32 Build break.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciLib.c
index 0812bf03632ae0c4f141695b6b7521f8c7d00137..c7423f6f799dddf81522b24b858bce7a5b324035 100644 (file)
@@ -2115,7 +2115,7 @@ ReadConfigData (
 \r
        Stride = 1 << AccessWidth;\r
         AccessAddress += Stride;\r
-        if (AccessAddress >= (Address + (1 << Width))) {\r
+        if (AccessAddress >= (Address + LShiftU64 (1ULL, (UINTN)Width))) {\r
           //\r
           // if all datas have been read, exist\r
           //\r
@@ -2382,7 +2382,7 @@ WriteConfigData (
 \r
         Stride = 1 << AccessWidth;\r
         AccessAddress += Stride;\r
-        if (AccessAddress >= (Address + (1 << Width))) {\r
+        if (AccessAddress >= (Address + LShiftU64 (1ULL, (UINTN)Width))) {\r
           //\r
           // if all datas have been written, exist\r
           //\r