summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorRuiyu Ni <Ruiyu.ni@Intel.com>2013-08-19 04:15:26 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2013-08-19 04:15:26 +0000
commitf91d18df575c05d5df24520e05debe0f0bb37084 (patch)
tree322a0f85899f8185b9b1f74d85d4915b5270b238 /OvmfPkg
parentdfd3119ab2e28b60b33b65b49249124994ffce63 (diff)
downloadedk2-f91d18df575c05d5df24520e05debe0f0bb37084.tar.gz
edk2-f91d18df575c05d5df24520e05debe0f0bb37084.tar.bz2
edk2-f91d18df575c05d5df24520e05debe0f0bb37084.zip
OvmfPkg ResetSystemLib: Fix VS build error
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <Ruiyu.ni@Intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14557 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c b/OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
index 391d053347..6d149e84c2 100644
--- a/OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
+++ b/OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
@@ -27,7 +27,7 @@ AcpiPmControl (
{
ASSERT (SuspendType < 6);
- IoBitFieldWrite16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, 10, 13, SuspendType);
+ IoBitFieldWrite16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, 10, 13, (UINT16) SuspendType);
IoOr16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, BIT13);
CpuDeadLoop ();
}