From f47c7d00a217e5be58273113489c3654a711ea34 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 18 May 2024 22:17:02 +0300 Subject: [PATCH] again --- src/graphics/ui/elements/TextBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {