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 clang -Wsign-conversion warning in grisu_count_digits. #1573

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

refnum
Copy link
Contributor

@refnum refnum commented Mar 2, 2020

grisu_count_digits is only used by grisu_gen_digits, which assigns the unsigned result to a (signed) int.

Although grisu_count_digits always returns a positive integer this keeps its return type in sync with the type its result is assigned to.

grisu_count_digits is only used by grisu_gen_digits, which assigns the unsigned result to a (signed) int.

Although grisu_count_digits always returns a positive integer this keeps its return type in sync with the type its result is assigned to.
@vitaut vitaut merged commit 68742e1 into fmtlib:master Mar 4, 2020
@vitaut
Copy link
Contributor

vitaut commented Mar 4, 2020

Thanks!

sthagen added a commit to sthagen/fmtlib-fmt that referenced this pull request Mar 4, 2020
Fix clang -Wsign-conversion warning in grisu_count_digits. (fmtlib#1573)
@refnum refnum deleted the grisu_count_digits branch March 5, 2020 10:18
teajay-fr pushed a commit to teajay-fr/fmt that referenced this pull request Mar 18, 2020
grisu_count_digits is only used by grisu_gen_digits, which assigns the unsigned result to a (signed) int.

Although grisu_count_digits always returns a positive integer this keeps its return type in sync with the type its result is assigned to.
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