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

tmux-cc: fix suspicious-looking decimal literals #1276

Merged
merged 1 commit into from Oct 27, 2021
Merged

tmux-cc: fix suspicious-looking decimal literals #1276

merged 1 commit into from Oct 27, 2021

Conversation

arxanas
Copy link
Contributor

@arxanas arxanas commented Oct 27, 2021

No description provided.

Clippy complained that these were decimal literals, not octal literals. Add the `0o` prefix to make them such.
@arxanas arxanas marked this pull request as ready for review October 27, 2021 05:44
@arxanas
Copy link
Contributor Author

arxanas commented Oct 27, 2021

Actually, I can't tell if this fixes anything at all. No tests seem to change either way.

@arxanas arxanas closed this Oct 27, 2021
@wez wez mentioned this pull request Oct 27, 2021
@Dixeran
Copy link
Contributor

Dixeran commented Oct 27, 2021

By looking into the original unvis.c file, those literals are do expressed in octal because of the leading zero.

@arxanas arxanas reopened this Oct 27, 2021
@arxanas
Copy link
Contributor Author

arxanas commented Oct 27, 2021

By the way, I found this because Clippy flagged it. It might be worth running in CI. There are only a handful of other Clippy issues which would need to be addressed (none of which looked like bugs).

@wez wez merged commit 539d72a into wez:main Oct 27, 2021
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.

None yet

3 participants