fix compilation warning in Text::[]
This commit is contained in:
parent
e816e912e9
commit
ad1b8f4e96
@ -15,7 +15,7 @@ namespace jes
|
||||
Text(const uint8_t buf[], size_t size);
|
||||
size_t get_size() { return m_size - m_gap_size; }
|
||||
|
||||
Character operator[](int index)
|
||||
Character operator[](size_t index)
|
||||
{
|
||||
return (Character)(m_buffer[index < m_gap_index ? index : index + m_gap_size]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user