region: use size_type for scaling param

This commit is contained in:
Danny Robson 2015-10-19 17:08:08 +11:00
parent f9bb2be93c
commit 4cd6dcc85c
2 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@ util::region<S,T>::magnitude (extent_t _e)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <size_t S, typename T> template <size_t S, typename T>
void void
util::region<S,T>::scale (T factor) util::region<S,T>::scale (size_type factor)
{ {
auto o = (e * factor - e) / T{2}; auto o = (e * factor - e) / T(2);
p -= o; p -= o;
e *= factor; e *= factor;
} }

View File

@ -77,7 +77,7 @@ namespace util {
extent_t magnitude (void) const; extent_t magnitude (void) const;
extent_t magnitude (extent_t); extent_t magnitude (extent_t);
void scale (T factor); void scale (size_type factor);
bool empty (void) const; bool empty (void) const;