Logger::unindent: fix assertion

This commit is contained in:
Alessandro Di Federico
2026-04-03 18:06:42 +02:00
parent 53c4c047d0
commit 6a3a0489a7
+1 -1
View File
@@ -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;
}
}