fix compilation warning in Text::[]
This commit is contained in:
1 parent
e816e912e9
commit
ad1b8f4e96
1 file changed
+1
-1
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user