-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 conversion warnings #989
Conversation
62e4771
to
bd1073d
Compare
6d904c4
to
b1c727e
Compare
include/fmt/format.h
Outdated
@@ -1460,7 +1460,7 @@ FMT_CONSTEXPR unsigned parse_nonnegative_int( | |||
} | |||
unsigned value = 0; | |||
// Convert to unsigned to prevent a warning. | |||
unsigned max_int = (std::numeric_limits<int>::max)(); | |||
unsigned max_int = internal::to_unsigned(std::numeric_limits<int>::max()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails to build on Windows. Somehow I get a feeling we're bitten by some max() macro coming from system headers or from the infamous <windows.h>
Ugh... so that's why it looked like that...
b1c727e
to
bfe82d8
Compare
Merged, thanks! |
@0x8000-0000, could you please review the updated CONTIBUTING document, particularly the part about licensing, and let me know if you agree with it being applied both to your contributions to {fmt}? The library is likely to be relicensed (#1073) so I'm collecting approval from all earlier contributors. Thanks! |
Victor,
I do agree with re-licensing my contributions under any license you find
best for the project. Thank you for your efforts so far, and for future
efforts in integrating this into C++20.
Thank you,
florin
…On 4/19/19 6:36 PM, Victor Zverovich wrote:
@0x8000-0000 <https://github.com/0x8000-0000>, could you please review
the updated CONTIBUTING
<https://github.com/fmtlib/fmt/blob/ebec00138bd10e949ff34955bcb096387cd32acc/CONTRIBUTING.md>
document, particularly the part about licensing, and let me know if
you agree with it being applied both to your contributions to {fmt}?
The library is likely to be relicensed (#1073
<#1073>) so I'm collecting
approval from all earlier contributors. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#989 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AA6QQNWVUAOR2EWOC5K7XJDPRJCQRANCNFSM4GLM6SAA>.
|
Supersedes #983. Rebased onto current master and resolved all review comments.