audk/EmbeddedPkg/Include/Library
Laszlo Ersek c06635ea3f EmbeddedPkg/TimeBaseLib: remove useless truncation to 32-bit
EfiTimeToEpoch() calls EfiGetEpochDays() internally, which (reasonably)
returns a UINTN. But then EfiTimeToEpoch() truncates the EfiGetEpochDays()
retval to UINT32 for no good reason, effectively restricting Time->Year
under 2106.

This truncation was pointed out with a valid warning (= build error) by
VS2019.

Allow EfiTimeToEpoch() to return / propagate a UINTN value.

Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20201221113657.6779-3-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
2020-12-21 15:55:16 +00:00
..
AcpiLib.h EmbeddedPkg/AcpiLib: add GICC table init macro for ACPI 6.3 2020-03-30 14:48:59 +00:00
AndroidBootImgLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
DebugAgentTimerLib.h EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
DmaLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
DtPlatformDtbLoaderLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
EfiFileLib.h EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
EfiResetSystemLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
FdtLoadLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
GdbSerialLib.h EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
HalRuntimeServicesLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
NorFlashInfoLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
PrePiHobListPointerLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
PrePiLib.h EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
RealTimeClockLib.h EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
TimeBaseLib.h EmbeddedPkg/TimeBaseLib: remove useless truncation to 32-bit 2020-12-21 15:55:16 +00:00