summaryrefslogtreecommitdiff
path: root/base/intmath.hh
diff options
context:
space:
mode:
Diffstat (limited to 'base/intmath.hh')
-rw-r--r--base/intmath.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/intmath.hh b/base/intmath.hh
index c8b9c5ec5..198278d6f 100644
--- a/base/intmath.hh
+++ b/base/intmath.hh
@@ -202,9 +202,9 @@ roundUp(T val, int align)
template <class T>
inline T
-roundDown(T val, T align)
+roundDown(T val, int align)
{
- T mask = align - 1;
+ T mask = (T)align - 1;
return val & ~mask;
}