eliminate compiler warnings

This commit is contained in:
Jinhao
2017-07-26 05:01:44 +08:00
parent 446fb1fc47
commit cf088ddbfb
2 changed files with 2 additions and 11 deletions

View File

@@ -1722,11 +1722,11 @@ namespace nana{ namespace widgets
}
else
{
crtpos.y = impl_->textbase.lines();
crtpos.y = static_cast<unsigned>(impl_->textbase.lines());
if (crtpos.y > 0)
--crtpos.y;
crtpos.x = impl_->textbase.getline(crtpos.y).size();
crtpos.x = static_cast<unsigned>(impl_->textbase.getline(crtpos.y).size());
}
points_.caret = crtpos;