]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Bus/Pci/IdeBus/Dxe/ata.c
Partially make EdkModulePkg pass intel IPF compiler with /W4 /WX switched on.
[mirror_edk2.git] / EdkModulePkg / Bus / Pci / IdeBus / Dxe / ata.c
index 3273380da0a041d9fab08faae5c0d92359dcb279..7ea54b9a4f8b091a07305d91c8814c3a0a42f193 100644 (file)
@@ -2073,7 +2073,7 @@ AtaCommandIssue (
   Lba1  = (UINT8) RShiftU64 (LbaAddress, 8);\r
   Lba2  = (UINT8) RShiftU64 (LbaAddress, 16);\r
   Lba3  = (UINT8) RShiftU64 (LbaAddress, 24);\r
-  Device |= Lba3;\r
+  Device = (UINT8) (Device | Lba3);\r
 \r
   //\r
   // Pass parameter into device register block\r