From 76d94e69ae08c0111bbd77bbf530c99476bc9c3c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 15 Feb 2020 10:57:12 +0200 Subject: [PATCH] Fix #1439 --- include/spdlog/sinks/ansicolor_sink-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/ansicolor_sink-inl.h b/include/spdlog/sinks/ansicolor_sink-inl.h index 8480b06d..6615fb45 100644 --- a/include/spdlog/sinks/ansicolor_sink-inl.h +++ b/include/spdlog/sinks/ansicolor_sink-inl.h @@ -111,7 +111,7 @@ SPDLOG_INLINE void ansicolor_sink::set_color_mode(color_mode mode) template SPDLOG_INLINE void ansicolor_sink::print_ccode_(const string_view_t &color_code) { - fwrite(color_code.data(), sizeof(string_view_t::char_type), color_code.size(), target_file_); + fwrite(color_code.data(), sizeof(string_view_t::value_type), color_code.size(), target_file_); } template