From 87698de126d04675a96469c174167e3b1f04042c Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 16 Jul 2017 23:30:05 +0800 Subject: [PATCH] fix a compiler error in text_editor.cpp --- 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 038cdf49..ea7f59b5 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -1708,7 +1708,7 @@ namespace nana{ namespace widgets //Check and make the crtpos available if (crtpos.y < impl_->textbase.lines()) { - crtpos.x = (std::min)(impl_->textbase.getline(crtpos.y).size(), crtpos.x); + crtpos.x = (std::min)(static_cast(impl_->textbase.getline(crtpos.y).size()), crtpos.x); } else {