]> git.proxmox.com Git - mirror_edk2.git/commit
EmbeddedPkg: improve TimeBaseLib type safety
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 13 Jun 2019 15:48:28 +0000 (16:48 +0100)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 17 Jun 2019 11:04:11 +0000 (12:04 +0100)
commit1d7571166fa8ef4bee3264e8a027b49ea9d98bd3
tree66514a24ae6b5b5b316362dbab62f26294f615fe
parent7c974d6b6e8119372d9e51b8b686d31d8665ab91
EmbeddedPkg: improve TimeBaseLib type safety

EfiTimeToEpoch currently returns a UINTN.
Also, some internal calculations was using UINTN for fixed-width.
Both of these lead to warnings/errors with VS2017.

Replace with appropriate fixed-size types.

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

Cc: Alexei Fedorov <Alexei.Fedorov@arm.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
EmbeddedPkg/Include/Library/TimeBaseLib.h
EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.c