maths: correct divisor in divup

This commit is contained in:
Danny Robson 2014-07-15 19:52:09 +10:00
parent 5820b75764
commit 4216369e86

View File

@ -60,10 +60,10 @@ unsigned
digits (const T& value) pure;
template <typename T>
template <typename T, typename U>
T
divup (const T a, const T b)
{ return (a + b - 1) / a; }
divup (const T a, const U b)
{ return (a + b - 1) / b; }
/**