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 {