Commit 1aa9ea92 authored by gabime's avatar gabime

Fix #1340

parent 2698f54a
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#pragma once #pragma once
#include <vector> #include <vector>
#include <cassert>
namespace spdlog { namespace spdlog {
namespace details { namespace details {
......
...@@ -75,8 +75,6 @@ public: ...@@ -75,8 +75,6 @@ public:
private: private:
void pad_it(long count) void pad_it(long count)
{ {
// count = std::min(count, spaces_.size());
// assert(count <= spaces_.size());
fmt_helper::append_string_view(string_view_t(spaces_.data(), static_cast<size_t>(count)), dest_); fmt_helper::append_string_view(string_view_t(spaces_.data(), static_cast<size_t>(count)), dest_);
} }
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#endif #endif
#include <spdlog/common.h> #include <spdlog/common.h>
#include <cassert>
namespace spdlog { namespace spdlog {
namespace details { namespace details {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment