diff --git a/build/codeblocks/nana.cbp b/build/codeblocks/nana.cbp index 962eca84..c598a95d 100644 --- a/build/codeblocks/nana.cbp +++ b/build/codeblocks/nana.cbp @@ -40,15 +40,6 @@ - - - - - - - - - diff --git a/source/gui/widgets/skeletons/text_editor.cpp b/source/gui/widgets/skeletons/text_editor.cpp index 452cf5fe..bbfed031 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -1722,11 +1722,11 @@ namespace nana{ namespace widgets } else { - crtpos.y = impl_->textbase.lines(); + crtpos.y = static_cast(impl_->textbase.lines()); if (crtpos.y > 0) --crtpos.y; - crtpos.x = impl_->textbase.getline(crtpos.y).size(); + crtpos.x = static_cast(impl_->textbase.getline(crtpos.y).size()); } points_.caret = crtpos;