diff --git a/src/asm/lexer.cpp b/src/asm/lexer.cpp index 0911273ad..3027baf7d 100644 --- a/src/asm/lexer.cpp +++ b/src/asm/lexer.cpp @@ -509,8 +509,9 @@ void BufferedContent::advance() { if (offset == std::size(buf)) { offset = 0; // Wrap around if necessary } - assume(size > 0); - size--; + if (size > 0) { + size--; + } } void BufferedContent::refill() {