Skip to content

Commit 9d6de44

Browse files
committed
fixed incorrect assertion
1 parent 174f259 commit 9d6de44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmamba/src/core/logging_spdlog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ namespace mamba
123123
{
124124
// THINK: consider only using spdlog to get the loggers
125125
const auto logger_idx = static_cast<size_t>(source);
126-
assert(logger_idx > 0 && logger_idx < loggers.size());
126+
assert(logger_idx >= 0 && logger_idx < loggers.size());
127127
auto& logger = loggers[logger_idx];
128128
assert(logger.logger());
129129
return logger;

0 commit comments

Comments
 (0)