mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 19:49:58 +02:00
[escher] Fix bug in text field: casting a unsigned char to signed char give negative
values above 127...
This commit is contained in:
committed by
LeaNumworks
parent
67185e6d26
commit
2e0a70f269
@@ -123,7 +123,7 @@ bool TextField::ContentView::removeChar() {
|
||||
if( m_horizontalAlignment == 0.0f) {
|
||||
reloadRectFromCursorPosition(cursorLocation());
|
||||
}
|
||||
for (int k = cursorLocation(); k < (signed char)m_currentDraftTextLength; k ++) {
|
||||
for (size_t k = cursorLocation(); k < m_currentDraftTextLength; k++) {
|
||||
m_draftTextBuffer[k] = m_draftTextBuffer[k+1];
|
||||
}
|
||||
m_draftTextBuffer[m_currentDraftTextLength] = 0;
|
||||
|
||||
Reference in New Issue
Block a user