fix compilation warning in Text::[]

This commit is contained in:
Josh Holtrop 2014-06-10 19:24:07 -04:00
parent e816e912e9
commit ad1b8f4e96

View File

@ -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]);
}