small improvements

This commit is contained in:
Jinhao
2018-04-09 17:47:48 +08:00
parent 2ba32d8aca
commit 3de91cb9a2
2 changed files with 5 additions and 5 deletions

View File

@@ -502,7 +502,7 @@ namespace nana
bool make_page_scroll(bool forward)
{
auto const count = range() / step();
return this->make_step(forward, (count > 2 ? count - 1 : 1));
return this->make_step(forward, static_cast<unsigned>(count > 2 ? count - 1 : 1));
}
};//end class scroll
}//end namespace nana