Skip to content

Commit

Permalink
ShellPkg/UefiShellAcpiViewCommandLib: Replace shift logical left
Browse files Browse the repository at this point in the history
Replace the operation to shift logical left with the function
LShiftU64, which has the same functionality.
The original code causes ShellPkg build failure with build
target"-b NOOPT".

Cc: Jaben Carsey <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Zhichao Gao <[email protected]>
Signed-off-by: Shenglei Zhang <[email protected]>
Reviewed-by: Zhichao Gao <[email protected]>
  • Loading branch information
shenglei10 authored and lgao4 committed Aug 19, 2019
1 parent 944bd5c commit 5726bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ DumpUint64 (

Val = *(UINT32*)(Ptr + sizeof (UINT32));

Val <<= 32;
Val = LShiftU64(Val,32);
Val |= (UINT64)*(UINT32*)Ptr;

Print (Format, Val);
Expand Down

0 comments on commit 5726bdd

Please sign in to comment.