summaryrefslogtreecommitdiff
path: root/OvmfPkg/QemuVideoDxe/VbeShim.c
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2014-08-13 06:31:08 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-13 06:31:08 +0000
commitea5396f31a8db7344177b4dd5335ebd617861d58 (patch)
treedeae20b594ac8fc9ccf0a2e6a7cd0ff90a08bd54 /OvmfPkg/QemuVideoDxe/VbeShim.c
parentc687b1464bb42a3c2d3eb2935ddd09752c6d2f2a (diff)
Fix VS2013 build failure.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15795 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/QemuVideoDxe/VbeShim.c')
-rw-r--r--OvmfPkg/QemuVideoDxe/VbeShim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/QemuVideoDxe/VbeShim.c b/OvmfPkg/QemuVideoDxe/VbeShim.c
index ae25b644c..81c11664f 100644
--- a/OvmfPkg/QemuVideoDxe/VbeShim.c
+++ b/OvmfPkg/QemuVideoDxe/VbeShim.c
@@ -268,8 +268,8 @@ InstallVbeShim (
//
// Second, point the Int10h vector at the shim.
//
- Int0x10->Segment = SegmentC >> 4;
- Int0x10->Offset = (EFI_PHYSICAL_ADDRESS)(UINTN)(VbeModeInfo + 1) - SegmentC;
+ Int0x10->Segment = (UINT16) (SegmentC >> 4);
+ Int0x10->Offset = (UINT16) ((UINTN) (VbeModeInfo + 1) - SegmentC);
DEBUG ((EFI_D_INFO, "%a: VBE shim installed\n", __FUNCTION__));
}