audk/EmbeddedPkg/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 EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
AndroidBootImgLib EmbeddedPkg: fix gcc build errors in AndroidBootImgLib 2020-07-23 12:05:44 +00:00
CoherentDmaLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
DebugAgentTimerLibNull EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
DxeDtPlatformDtbLoaderLibDefault EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
FdtLib EmbeddedPkg: delete outdated FdtLib README.txt 2019-10-04 11:18:22 +01:00
GdbSerialDebugPortLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
GdbSerialLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
NonCoherentDmaLib EmbeddedPkg/NonCoherentDmaLib: avoid dereferencing bogus buffer address 2020-06-17 18:28:29 +00:00
NorFlashInfoLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
NvVarStoreFormattedLib EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS 2019-04-29 15:34:16 +02:00
PlatformHasAcpiLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
PrePiExtractGuidedSectionLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
PrePiHobLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
PrePiLib EmbeddedPkg: list module-internal header files in INF [Sources] 2019-07-23 00:20:34 +02:00
PrePiMemoryAllocationLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
TemplateRealTimeClockLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
TemplateResetSystemLib EmbeddedPkg: add missing newline at end of TemplateResetSystemLib.inf 2019-10-04 11:18:22 +01:00
TimeBaseLib EmbeddedPkg/TimeBaseLib: remove useless truncation to 32-bit 2020-12-21 15:55:16 +00:00
VirtualRealTimeClockLib EmbeddedPkg/VirtualRealTimeClockLib: Explicit cast to UINT32 2020-10-22 13:23:48 +00:00