mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Fix comparison warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user