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 a compilation error on some platforms. #1417

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

alarixnia
Copy link
Contributor

std::max expects both arguments to be the same type (in this case const char *), while the C version of strrchr returns non-const char *, which results in a type error with some C libraries.

std::max expects both arguments to be the same type (in this
case const char *), while the C version of strrchr returns
non-const char *, which results in a type error with some C
libraries.

Signed-off-by: Nia Alarie <[email protected]>
@jpd002 jpd002 merged commit b9c5c4d into jpd002:master Oct 22, 2024
13 checks passed
@jpd002
Copy link
Owner

jpd002 commented Oct 22, 2024

Ah, I didn't know about that subtlety! 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.

2 participants