From 06ace4369c2be877bbdfd060f544de0ca64ff2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 27 Mar 2018 16:21:03 +0200 Subject: [PATCH] Clean warnings (comparison signed and unsigned) --- escher/src/text_field.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escher/src/text_field.cpp b/escher/src/text_field.cpp index 1ec07be5a..c483fadba 100644 --- a/escher/src/text_field.cpp +++ b/escher/src/text_field.cpp @@ -91,7 +91,7 @@ bool TextField::ContentView::insertTextAtLocation(const char * text, int locatio m_draftTextBuffer[location+textSize-1] = text[textSize-1]; } m_currentDraftTextLength += textSize; - for (int i = 0; i < m_currentDraftTextLength; i++) { + for (size_t i = 0; i < m_currentDraftTextLength; i++) { if (m_draftTextBuffer[i] == '\n') { m_draftTextBuffer[i] = 0; m_currentDraftTextLength = i;