From 5726bdd9a2dfd188a96129e8c00721f34cf3906e Mon Sep 17 00:00:00 2001 From: Shenglei Zhang Date: Thu, 15 Aug 2019 15:32:59 +0800 Subject: [PATCH] ShellPkg/UefiShellAcpiViewCommandLib: Replace shift logical left 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 Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Shenglei Zhang Reviewed-by: Zhichao Gao --- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c index 94bafa22ef..a569c3c554 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c @@ -294,7 +294,7 @@ DumpUint64 ( Val = *(UINT32*)(Ptr + sizeof (UINT32)); - Val <<= 32; + Val = LShiftU64(Val,32); Val |= (UINT64)*(UINT32*)Ptr; Print (Format, Val);