mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Fix a MSVC warning
This commit is contained in:
parent
fc505b5447
commit
5324d385c0
@ -366,8 +366,8 @@ class CharConverter : public fmt::internal::ArgVisitor<CharConverter, void> {
|
||||
// Write the content of w to os.
|
||||
void write(std::ostream &os, fmt::MemoryWriter &w) {
|
||||
const char *data = w.data();
|
||||
std::size_t size = w.size();
|
||||
typedef internal::MakeUnsigned<std::streamsize>::Type UnsignedStreamSize;
|
||||
UnsignedStreamSize size = w.size();
|
||||
UnsignedStreamSize max_size =
|
||||
internal::to_unsigned((std::numeric_limits<std::streamsize>::max)());
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user