From db663a0faeda98952ef4fca2de4e6c47d45f075b Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 25 Sep 2016 09:33:54 +0800 Subject: [PATCH] fix a compiler warning --- 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 7f35a167..28429f8f 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -442,7 +442,7 @@ namespace nana{ namespace widgets } if (pos.x > text_ptr->size()) - pos.x = text_ptr->size(); + pos.x = static_cast(text_ptr->size()); pos.x = editor_._m_pixels_by_char(*text_ptr, pos.x) + editor_.text_area_.area.x; int pos_y = static_cast((pos.y - editor_.points_.offset.y) * editor_.line_height() + editor_._m_text_top_base());