mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:27:44 +00:00
LibWeb: Fix Off-by-one error in CSS::Parser::next_token()
This commit is contained in:
parent
06cd418770
commit
06fc099310
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ Token Parser::peek_token()
|
||||||
|
|
||||||
Token Parser::next_token()
|
Token Parser::next_token()
|
||||||
{
|
{
|
||||||
if (m_iterator_offset < (int)m_tokens.size()) {
|
if (m_iterator_offset < (int)m_tokens.size() - 1) {
|
||||||
++m_iterator_offset;
|
++m_iterator_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue