From ad1b8f4e9631ae0bb027f22a3204ee155a559105 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 10 Jun 2014 19:24:07 -0400 Subject: [PATCH] fix compilation warning in Text::[] --- src/lib/include/jes/Text.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/include/jes/Text.h b/src/lib/include/jes/Text.h index 64a925d..2f39756 100644 --- a/src/lib/include/jes/Text.h +++ b/src/lib/include/jes/Text.h @@ -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]); }