]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OptionRomPkg/CirrusLogic5430Dxe/Edid.c
Fix build warning generated by ICC and MSVC compilers.
[mirror_edk2.git] / OptionRomPkg / CirrusLogic5430Dxe / Edid.c
index 73999e3f1531166980daa3da40850e4594e80695..fcbfc024103ecd7ba180f66d265d15568894b85b 100644 (file)
@@ -118,7 +118,7 @@ ReadEdidData (
   UINT64            Signature;\r
 \r
   for (Index = 0; Index < EDID_BLOCK_SIZE * 2; Index ++) {\r
-    I2cReadByte (Private->PciIo, 0xa0, Index, &EdidData[Index]);\r
+    I2cReadByte (Private->PciIo, 0xa0, (UINT8)Index, &EdidData[Index]);\r
   }\r
 \r
   //\r