//\r
// Second, point the Int10h vector at the shim.\r
//\r
- Int0x10->Segment = SegmentC >> 4;\r
- Int0x10->Offset = (EFI_PHYSICAL_ADDRESS)(UINTN)(VbeModeInfo + 1) - SegmentC;\r
+ Int0x10->Segment = (UINT16) (SegmentC >> 4);\r
+ Int0x10->Offset = (UINT16) ((UINTN) (VbeModeInfo + 1) - SegmentC);\r
\r
DEBUG ((EFI_D_INFO, "%a: VBE shim installed\n", __FUNCTION__));\r
}\r