diff options
author | Jaben Carsey <jaben.carsey@intel.com> | 2014-08-14 17:58:16 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-14 17:58:16 +0000 |
commit | e8a57ade2adbdb7830290c44bccd5b7137c80c09 (patch) | |
tree | 6d82b1f195d80614ad3d0b420c286d664c6305bb /ShellPkg | |
parent | 83d1ffb92f165547d750586ef954c54f59b7fab3 (diff) | |
download | edk2-platforms-e8a57ade2adbdb7830290c44bccd5b7137c80c09.tar.xz |
ShellPkg add size cast to bit operations
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15804 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c index 1e0d8c28d4..25c3dfef6c 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c @@ -1378,7 +1378,7 @@ PciGetClassStrings ( Print strings that represent PCI device class, subclass and programmed I/F.
@param[in] ClassCodePtr Points to the memory which stores register Class Code in PCI
- configuation space.
+ configuration space.
@param[in] IncludePIF If the printed string should include the programming I/F part
**/
VOID
@@ -1391,9 +1391,9 @@ PciPrintClassCode ( PCI_CLASS_STRINGS ClassStrings;
ClassCode = 0;
- ClassCode |= ClassCodePtr[0];
- ClassCode |= (ClassCodePtr[1] << 8);
- ClassCode |= (ClassCodePtr[2] << 16);
+ ClassCode |= (UINT32)ClassCodePtr[0];
+ ClassCode |= (UINT32)(ClassCodePtr[1] << 8);
+ ClassCode |= (UINT32)(ClassCodePtr[2] << 16);
//
// Get name from class code
|