diff --git a/src/graphics/ui/elements/TextBox.cpp b/src/graphics/ui/elements/TextBox.cpp index 091b944c..43b6304e 100644 --- a/src/graphics/ui/elements/TextBox.cpp +++ b/src/graphics/ui/elements/TextBox.cpp @@ -452,7 +452,7 @@ void TextBox::stepDefaultUp(bool shiftPressed, bool breakSelection) { uint offset = std::min(size_t(maxLocalCaret), getLineLength(caretLine-1)-1); setCaret(label->getTextLineOffset(caretLine-1) + offset); } else { - setCaret(0UL); + setCaret(static_cast(0)); } if (shiftPressed) { if (selectionStart == selectionEnd) {