summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d9de12e873..52406add24 100644
--- a/OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
+++ b/OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
@@ -25,7 +25,7 @@ AcpiPmControl (
{
ASSERT (SuspendType < 6);
- IoAndThenOr16 (0x404, ~0x3c00, SuspendType << 10);
+ IoAndThenOr16 (0x404, (UINT16) ~0x3c00, (UINT16) (SuspendType << 10));
IoOr16 (0x404, BIT13);
CpuDeadLoop ();
}