mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Logger::unindent: fix assertion
This commit is contained in:
@@ -188,7 +188,7 @@ void Logger::indent(unsigned Level) {
|
||||
|
||||
void Logger::unindent(unsigned Level) {
|
||||
if (isEnabled()) {
|
||||
revng_assert(IndentLevel - Level >= 0);
|
||||
revng_assert(static_cast<int>(IndentLevel) - static_cast<int>(Level) >= 0);
|
||||
IndentLevel -= Level;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user