diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/intmath.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/intmath.hh b/base/intmath.hh index 3922a326b..c8b9c5ec5 100644 --- a/base/intmath.hh +++ b/base/intmath.hh @@ -194,9 +194,9 @@ divCeil(T a, T b) template <class T> inline T -roundUp(T val, T align) +roundUp(T val, int align) { - T mask = align - 1; + T mask = (T)align - 1; return (val + mask) & ~mask; } |