]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Library/PrePiLib/FwVol.c
EmbeddedPkg: Fix a build error in FwVol.c in X64 arch
authorMin Xu <min.m.xu@intel.com>
Thu, 16 Dec 2021 04:55:51 +0000 (12:55 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 27 Jan 2022 06:19:05 +0000 (06:19 +0000)
commit6777e673839a510aaa62a48514a4223da7d3bba2
tree309fd68d4c3b1989b454f8471ea97d7572370f2e
parent8cc5590eab974ab34e2bfa1c9d6a7ef94c70ffae
EmbeddedPkg: Fix a build error in FwVol.c in X64 arch

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3814

CompressedDataLength is declared as UINTN which is UINT64 in X64 arch.
But the second parameter of UefiDecompressGetInfo() is declared as
UINT32. So a build error is triggered. To declare CompressedDataLength
as UINT32 to fix the build error.

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Abner Chang <abner.chang@hpe.com>
Cc: Daniel Schaefer <daniel.schaefer@hpe.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
EmbeddedPkg/Library/PrePiLib/FwVol.c