code formatting

This commit is contained in:
gabime 2018-04-09 15:14:13 +03:00
parent e9bb008f15
commit 3fdc7996db
2 changed files with 4 additions and 5 deletions

View File

@ -245,7 +245,7 @@ inline size_t filesize(FILE *f)
}
#else // unix 32 bits or cygwin
struct stat st;
if (fstat(fd, &st) == 0)
{
return static_cast<size_t>(st.st_size);

View File

@ -480,11 +480,10 @@ class full_formatter SPDLOG_FINAL : public flag_formatter
msg.formatted << '[';
// wrap the level name with color
msg.color_range_start = msg.formatted.size();
msg.formatted << level::to_str(msg.level);
msg.color_range_end = msg.formatted.size();
msg.color_range_start = msg.formatted.size();
msg.formatted << level::to_str(msg.level);
msg.color_range_end = msg.formatted.size();
msg.formatted << "] " << fmt::StringRef(msg.raw.data(), msg.raw.size());
}
};