Skip to content

avoid os.stat() int overflow on smallint-only builds #2626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

dhalbert
Copy link
Collaborator

Fixes #2267.

Returns the number of seconds for 1999-12-31 for os.stat() fields that are times, on smallint builds only. This is instead of 1969-12-31. 1999-12-31 is used for some other fixed dates, so using it is a bit more consistent.

@dhalbert dhalbert requested a review from tannewt February 14, 2020 21:33
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you!

@tannewt tannewt merged commit 52d96ca into adafruit:master Feb 18, 2020
@dhalbert dhalbert deleted the stat-for-shortint branch February 29, 2020 02:25
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.

os.stat() causing int overflow on boards without long int support
2 participants