summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/Library
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-12-03 08:51:36 +0000
committerabiesheuvel <abiesheuvel@Edk2>2015-12-03 08:51:36 +0000
commite04671e81a7fe842f640a926171048e5524b46e0 (patch)
treee6e5930a9616284b4b0ba54d365212c83717204e /ArmVirtPkg/Library
parent2e728930aa6aaeff230bb60f36c8e39632399bcc (diff)
downloadedk2-e04671e81a7fe842f640a926171048e5524b46e0.tar.gz
edk2-e04671e81a7fe842f640a926171048e5524b46e0.tar.bz2
edk2-e04671e81a7fe842f640a926171048e5524b46e0.zip
ArmVirtPkg: use explicit KERNEL_BLOB_TYPE cast
The ARM RVCT compiler does not allow implicit casts between enumerated types and integer types. In this particular case, the STUB_FILE::Position member is overloaded as a KERNEL_BLOB_TYPE identifier, so it does not hurt to make that cast explicit. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19108 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmVirtPkg/Library')
-rw-r--r--ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c b/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
index b882dd2713..c48f4767ad 100644
--- a/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
+++ b/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
@@ -413,7 +413,9 @@ StubFileRead (
return EFI_SUCCESS;
}
- Status = ConvertKernelBlobTypeToFileInfo (StubFile->Position, BufferSize,
+ Status = ConvertKernelBlobTypeToFileInfo (
+ (KERNEL_BLOB_TYPE)StubFile->Position,
+ BufferSize,
Buffer);
if (EFI_ERROR (Status)) {
return Status;