forked from fmtlib/fmt
Fix a MSVC warning
This commit is contained in:
@@ -366,8 +366,8 @@ class CharConverter : public fmt::internal::ArgVisitor<CharConverter, void> {
|
|||||||
// Write the content of w to os.
|
// Write the content of w to os.
|
||||||
void write(std::ostream &os, fmt::MemoryWriter &w) {
|
void write(std::ostream &os, fmt::MemoryWriter &w) {
|
||||||
const char *data = w.data();
|
const char *data = w.data();
|
||||||
std::size_t size = w.size();
|
|
||||||
typedef internal::MakeUnsigned<std::streamsize>::Type UnsignedStreamSize;
|
typedef internal::MakeUnsigned<std::streamsize>::Type UnsignedStreamSize;
|
||||||
|
UnsignedStreamSize size = w.size();
|
||||||
UnsignedStreamSize max_size =
|
UnsignedStreamSize max_size =
|
||||||
internal::to_unsigned((std::numeric_limits<std::streamsize>::max)());
|
internal::to_unsigned((std::numeric_limits<std::streamsize>::max)());
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user