From b7e0e2c237e24582ceb8db6d2ed26ae4ead08506 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 26 Apr 2024 00:04:00 +0300 Subject: [PATCH] Fix #3073 --- include/spdlog/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 1269c14a..26d3708e 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -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};