summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2018-08-03 10:46:34 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2018-08-06 10:12:14 +0800
commit81038d50c9c9bbe5756d6ba172d692d0c7b58a62 (patch)
tree1857d03cd8b4ea814a3a26e3191782fe2191944c /ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c
parentc1f032cd3a95ed74dad27d848526495e5790d4af (diff)
downloadedk2-81038d50c9c9bbe5756d6ba172d692d0c7b58a62.tar.gz
edk2-81038d50c9c9bbe5756d6ba172d692d0c7b58a62.tar.bz2
edk2-81038d50c9c9bbe5756d6ba172d692d0c7b58a62.zip
ShellPkg/acpi: Code cleanup to pass static code checker
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Hao Wu <Hao.a.wu@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c')
-rw-r--r--ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c
index 18c4983e95..5cab20023d 100644
--- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c
+++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c
@@ -297,7 +297,7 @@ DumpUint64 (
Val = *(UINT32*)(Ptr + sizeof (UINT32));
Val <<= 32;
- Val |= *(UINT32*)Ptr;
+ Val |= (UINT64)*(UINT32*)Ptr;
Print (Format, Val);
}