From 47c04c382eb5c024173f8b8d37536ca25f9f93c4 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Thu, 23 Aug 2018 13:01:06 +0800 Subject: EmulatorPkg/ThunkProtocolList: Fix VS build failure VS compiler complains converting UINTN to UINT16 causes data lost. Add typecast to fix the build failure. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Cc: Andrdw Fish Reviewed-by: Hao A Wu --- EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'EmulatorPkg') diff --git a/EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.c b/EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.c index b2daa2bef5..9fa9e25e94 100644 --- a/EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.c +++ b/EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.c @@ -2,7 +2,7 @@ Emulator Thunk to abstract OS services from pure EFI code Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.
- Copyright (c) 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -82,7 +82,7 @@ AddThunkProtocol ( Private->EmuBusDriver = EmuBusDriver; CopyMem (&Private->Data, ThunkIo, sizeof (EMU_IO_THUNK_PROTOCOL)); - Private->Data.Instance = Instance++; + Private->Data.Instance = (UINT16)Instance++; Private->Data.ConfigString = StartString; InsertTailList (&mThunkList, &Private->Link); -- cgit v1.2.3