On 11/04/2025 14:35:56+0200, Alexandre Mergnat wrote:
The RTC subsystem was experiencing comparison issues between signed andrange_max is explicitly unsigned, casting it to a signed value will
unsigned time values. When comparing time64_t variables (signed) with
potentially unsigned range values, incorrect results could occur leading
to runtime errors.
Adds explicit type casts to time64_t for critical RTC time comparisons
in both class.c and interface.c files. The changes ensure proper
handling of negative time values during range validation and offset
calculations, particularly when dealing with timestamps before 1970.
The previous implementation might incorrectly interpret negative values
as extremely large positive values, causing unexpected behavior in the
RTC hardware abstraction logic.
break drivers.