Skip to content

Avoid int overflow after year 2038#193

Open
bmwiedemann wants to merge 1 commit into
boostorg:developfrom
bmwiedemann:timet
Open

Avoid int overflow after year 2038#193
bmwiedemann wants to merge 1 commit into
boostorg:developfrom
bmwiedemann:timet

Conversation

@bmwiedemann

Copy link
Copy Markdown

See https://en.wikipedia.org/wiki/Year_2038_problem

Without this patch, a u8<<24 would be sign-extended and produce a negative value for timestamps after 2038-01-19 ( values >= 0x80000000 )

This patch was done while reviewing potential year-2038 issues in openSUSE.

See https://en.wikipedia.org/wiki/Year_2038_problem

Without this patch, a u8<<24 would be sign-extended and
produce a negative value for timestamps after 2038-01-19

This patch was done while reviewing potential year-2038 issues in openSUSE.
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.

1 participant