BaseTools/C/Common: Remove redundant type cast

Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Hao Wu 2017-11-30 16:38:47 +08:00
parent 9cdda7baa0
commit b567adb81e

View File

@ -2,7 +2,7 @@
Functions to get info and load PE/COFF image. Functions to get info and load PE/COFF image.
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR> Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR> Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -1080,12 +1080,10 @@ Returns:
PeHdr->Pe32.OptionalHeader.AddressOfEntryPoint PeHdr->Pe32.OptionalHeader.AddressOfEntryPoint
); );
} else { } else {
ImageContext->EntryPoint = (PHYSICAL_ADDRESS) ( ImageContext->EntryPoint = (UINTN)ImageContext->ImageAddress +
(UINTN)ImageContext->ImageAddress +
(UINTN)TeHdr->AddressOfEntryPoint + (UINTN)TeHdr->AddressOfEntryPoint +
(UINTN)sizeof(EFI_TE_IMAGE_HEADER) - (UINTN)sizeof(EFI_TE_IMAGE_HEADER) -
(UINTN) TeHdr->StrippedSize (UINTN) TeHdr->StrippedSize;
);
} }
// //