Skip to content
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

Fix wrong time_t used in function #5938

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

NattyNarwhal
Copy link
Contributor

This function doesn't interoperate with any system functions that use the system time_t, but rather only works with the git_time_t type in libgit2, which could be a different width than the system one. Fixes a compile warning.

This function doesn't interoperate with any system functions that
use the system time_t, but rather only works with the git_time_t
type in libgit2, which could be a different width than the system
one. Fixes a compile warning.
@NattyNarwhal
Copy link
Contributor Author

(I didn't touch any of the other ones because they all seemed to just work with system functions that return or expect time_t.)

Copy link
Contributor

@lhchavez lhchavez left a comment

Choose a reason for hiding this comment

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

just out of curiosity, what compiler / environment was warning about this?

@NattyNarwhal
Copy link
Contributor Author

....Visual C++ 6. I've found out what's actually not C89 in libgit2, at least 😬

@ethomson ethomson merged commit e5649e1 into libgit2:main Jul 14, 2021
@ethomson
Copy link
Member

Thanks! 🎉

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.

3 participants