On 12/02/15 18:02, Ard Biesheuvel wrote:
> 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 <[email protected]>
> ---
>  ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c 
> b/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
> index b882dd2713c1..c48f4767ad8f 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;
> 

Reviewed-by: Laszlo Ersek <[email protected]>
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to