]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg: use explicit KERNEL_BLOB_TYPE cast
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 3 Dec 2015 08:51:36 +0000 (08:51 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 3 Dec 2015 08:51:36 +0000 (08:51 +0000)
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

ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c

index b882dd2713c15a11051481d020be1b63f171b47f..c48f4767ad8f9a75719a7281a4c682dd2d08e458 100644 (file)
@@ -413,7 +413,9 @@ StubFileRead (
       return EFI_SUCCESS;\r
     }\r
 \r
-    Status = ConvertKernelBlobTypeToFileInfo (StubFile->Position, BufferSize,\r
+    Status = ConvertKernelBlobTypeToFileInfo (\r
+               (KERNEL_BLOB_TYPE)StubFile->Position,\r
+               BufferSize,\r
                Buffer);\r
     if (EFI_ERROR (Status)) {\r
       return Status;\r