From 2a38e4c31d2c27ec32a1e28719a2f02cdbd0f99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 21 Nov 2018 17:34:13 +0100 Subject: [PATCH] Fix comparison warning --- apps/shared/text_field_with_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared/text_field_with_extension.cpp b/apps/shared/text_field_with_extension.cpp index 61797bf68..b2a3ca9fe 100644 --- a/apps/shared/text_field_with_extension.cpp +++ b/apps/shared/text_field_with_extension.cpp @@ -23,7 +23,7 @@ void TextFieldWithExtension::removeWholeText() { bool TextFieldWithExtension::removeTextBeforeExtension(bool whole) { int extensionIndex = strlen(text()) - m_extensionLength; assert(extensionIndex >= 0 && extensionIndex < ContentView::k_maxBufferSize - m_extensionLength); - size_t destinationIndex = whole ? 0 : cursorLocation(); + int destinationIndex = whole ? 0 : cursorLocation(); if (destinationIndex == extensionIndex) { return false; }