region: use size_type for scaling param
This commit is contained in:
parent
f9bb2be93c
commit
4cd6dcc85c
@ -103,9 +103,9 @@ util::region<S,T>::magnitude (extent_t _e)
|
||||
//-----------------------------------------------------------------------------
|
||||
template <size_t S, typename T>
|
||||
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;
|
||||
e *= factor;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace util {
|
||||
extent_t magnitude (void) const;
|
||||
extent_t magnitude (extent_t);
|
||||
|
||||
void scale (T factor);
|
||||
void scale (size_type factor);
|
||||
|
||||
bool empty (void) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user