-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up bit fiddling for argument packing
- Loading branch information
Showing
2 changed files
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bcf3fcd
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.
With clang7
In file included from /home/florin/work/geometry/external/lib/fmt/include/fmt/format.h:60:
/home/florin/work/geometry/external/lib/fmt/include/fmt/core.h:1284:46: error: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Werror,-Wshorten-64-to-32]
return is_packed() ? max_packed : types_ & ~internal::is_unpacked_bit;
~~~~~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
bcf3fcd
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.
Changing the return type of basic_format_args::max_size to "unsigned long long" from "unsigned" fixes this warning.
bcf3fcd
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.
OK - I just got e7e2ab1 which has the same fix.