]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/CpuRuntimeDxe/CpuIo.c
Fix ICC building issue for Nt32 platform.
[mirror_edk2.git] / Nt32Pkg / CpuRuntimeDxe / CpuIo.c
index aa474db48ad4a9bef76aba33c65fd0c4aca55af1..b513c7242d79e6fb5e248ba5a63c4a069aa25a28 100644 (file)
@@ -319,7 +319,7 @@ Returns:
     Count = 1;\r
   }\r
 \r
-  Width = Width & 0x03;\r
+  Width = (EFI_CPU_IO_PROTOCOL_WIDTH)(Width & 0x03);\r
   if (Address - 1 + (1 << Width) * Count > Limit) {\r
     return EFI_UNSUPPORTED;\r
   }\r