Fix #1340
This commit is contained in:
		@@ -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:
 | 
				
			|||||||
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 @@
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <spdlog/common.h>
 | 
					#include <spdlog/common.h>
 | 
				
			||||||
 | 
					#include <cassert>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace spdlog {
 | 
					namespace spdlog {
 | 
				
			||||||
namespace details {
 | 
					namespace details {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user