From cf088ddbfbb2d51f087dbad10fe95bc657064413 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Wed, 26 Jul 2017 05:01:44 +0800 Subject: [PATCH] eliminate compiler warnings --- build/codeblocks/nana.cbp | 9 --------- source/gui/widgets/skeletons/text_editor.cpp | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) 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;