summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-25 10:19:11 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-25 10:19:11 +0000
commitce9b590040986cad621a744bf595df400e378134 (patch)
tree3f3b5b20d412897fcea76518ea1589030eb415aa /MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
parent1476a2576160018e56f628fe85c3d23b2db959a8 (diff)
Fixed build error reported by ICC and GCC
Signed-off-by: erictian Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12209 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c')
-rw-r--r--MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c b/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
index f5e66e4f3..d4c22d094 100644
--- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
+++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
@@ -362,7 +362,7 @@ XhcReadRuntimeReg64 (
if (EFI_ERROR (Status)) {
DEBUG ((EFI_D_ERROR, "XhcReadRuntimeReg64: Pci Io Read error - %r at %d\n", Status, Offset));
- Data = 0xFFFFFFFFFFFFFFFF;
+ Data = 0xFFFFFFFFFFFFFFFFULL;
}
return Data;
@@ -700,7 +700,7 @@ XhcGetLegSupCapAddr (
//
// If not, then traverse all of the ext capability registers till finding out it.
//
- NextExtCapReg = (Data >> 8) & 0xFF;
+ NextExtCapReg = (UINT8)((Data >> 8) & 0xFF);
ExtCapOffset += (NextExtCapReg << 2);
} while (NextExtCapReg != 0);