From b286ced6baf2461a713b6c2605990ac2fa044172 Mon Sep 17 00:00:00 2001 From: beru Date: Sun, 24 Feb 2019 10:29:34 +0900 Subject: [PATCH] fix compile error --- source/gui/widgets/skeletons/text_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/widgets/skeletons/text_editor.cpp b/source/gui/widgets/skeletons/text_editor.cpp index b3015adc..b0c4c800 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -2456,7 +2456,7 @@ namespace nana { if (arg.ctrl) { coord.y = static_cast((line_count - 1) * line_px); //The number of charecters of the bottom line - auto const text_length = textbase().getline(std::max(0u, line_count - 1)).size(); + auto const text_length = textbase().getline(std::max(0, line_count - 1)).size(); //move the caret to the end of the line pos.x = static_cast(text_length); }