Skip to content

Commit

Permalink
Fix #3073
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime authored Apr 25, 2024
1 parent a0d2187 commit b7e0e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ struct source_loc {
line{line_in},
funcname{funcname_in} {}

SPDLOG_CONSTEXPR bool empty() const SPDLOG_NOEXCEPT { return line == 0; }
SPDLOG_CONSTEXPR bool empty() const SPDLOG_NOEXCEPT { return line <= 0; }
const char *filename{nullptr};
int line{0};
const char *funcname{nullptr};
Expand Down

0 comments on commit b7e0e2c

Please sign in to comment.