summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 08:08:54 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 08:08:54 +0000
commite16c7fa32b48074c76048e6e549fedcca3a42988 (patch)
treeeb3f051a2459f2b5af08e1f660dc5e1eb5fa5849 /EdkCompatibilityPkg
parentaeef1b2b8482ba0611a2916e463c918cb6ec6f22 (diff)
downloadedk2-platforms-e16c7fa32b48074c76048e6e549fedcca3a42988.tar.xz
ICC Cleanup: add enum typecast after arithemtics.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6588 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r--EdkCompatibilityPkg/Compatibility/DeviceIoToPciRootBridgeIoThunk/DeviceIoToPciRootBridgeIoThunk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/DeviceIoToPciRootBridgeIoThunk/DeviceIoToPciRootBridgeIoThunk.c b/EdkCompatibilityPkg/Compatibility/DeviceIoToPciRootBridgeIoThunk/DeviceIoToPciRootBridgeIoThunk.c
index 24acfb3b67..db8b72ed44 100644
--- a/EdkCompatibilityPkg/Compatibility/DeviceIoToPciRootBridgeIoThunk/DeviceIoToPciRootBridgeIoThunk.c
+++ b/EdkCompatibilityPkg/Compatibility/DeviceIoToPciRootBridgeIoThunk/DeviceIoToPciRootBridgeIoThunk.c
@@ -541,7 +541,7 @@ DeviceIoMemRead (
return EFI_INVALID_PARAMETER;
}
if (Width >= MMIO_COPY_UINT8) {
- Width = Width - MMIO_COPY_UINT8;
+ Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8);
Status = Private->PciRootBridgeIo->CopyMem (
Private->PciRootBridgeIo,
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,
@@ -600,7 +600,7 @@ DeviceIoMemWrite (
return EFI_INVALID_PARAMETER;
}
if (Width >= MMIO_COPY_UINT8) {
- Width = Width - MMIO_COPY_UINT8;
+ Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8);
Status = Private->PciRootBridgeIo->CopyMem (
Private->PciRootBridgeIo,
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,