JsonParser: Oops, fix build.

This commit is contained in:
Andreas Kling 2019-08-04 18:55:26 +02:00
parent cd235ce27d
commit 72b69b82bb
Notes: sideshowbarker 2024-07-19 12:53:46 +09:00

View File

@ -96,7 +96,7 @@ String JsonParser::consume_quoted_string()
if (buffer.is_empty())
return {};
auto& last_string_starting_with_character = m_last_string_starting_with_character[buffer.first()];
auto& last_string_starting_with_character = m_last_string_starting_with_character[(int)buffer.first()];
if (last_string_starting_with_character.length() == buffer.size()) {
if (!memcmp(last_string_starting_with_character.characters(), buffer.data(), buffer.size()))
return last_string_starting_with_character;