Skip to content

Fix string formatting for state_entry_time - #601

Merged
spandruvada merged 1 commit into
masterfrom
thermald_next
Sep 23, 2026
Merged

spandruvada merged 1 commit into
masterfrom
thermald_next

Conversation

@spandruvada

Copy link
Copy Markdown
Contributor

state_entry_time is time_t data type, time_t has changed the data size to 64bits due to year 2038 problem, then to avoid string format issue the type had been casted to intmax_t and switch from long(l) to intmax_t(j) because long has the minimum size of 32bits and the mininum size for time_t is 64bits.

state_entry_time is time_t data type, time_t has changed the
data size to 64bits due to year 2038 problem, then to avoid string format
issue the type had been casted to intmax_t and switch from long(l) to
intmax_t(j) because long has the minimum size of 32bits and the mininum size
for time_t is 64bits.

Signed-off-by: Lucas de Castro Borges <lucas@gnuabordo.com.br>
@spandruvada
spandruvada merged commit 39f4bdb into master Sep 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants