Revision: 15804
http://sourceforge.net/p/edk2/code/15804
Author: jcarsey
Date: 2014-08-14 17:58:16 +0000 (Thu, 14 Aug 2014)
Log Message:
-----------
ShellPkg add size cast to bit operations
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <[email protected]>
Reviewed-by: Eric Dong <[email protected]>
Modified Paths:
--------------
trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
Modified: trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
2014-08-14 14:30:32 UTC (rev 15803)
+++ trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
2014-08-14 17:58:16 UTC (rev 15804)
@@ -1378,7 +1378,7 @@
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 @@
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
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits