summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-02-11 20:34:48 +0000
committerfrosch <frosch@openttd.org>2014-02-11 20:34:48 +0000
commit858e80f3dd49f89dc022b93083f8db3ccdc5217d (patch)
tree703792b180408115fd19175a74e54235333db8bb /src/core
parent470bd0ce24d61f133cdd2c453cfec11c21d390ac (diff)
downloadopenttd-858e80f3dd49f89dc022b93083f8db3ccdc5217d.tar.xz
(svn r26333) -Fix: Compilation without static_assert.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/pool_type.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/pool_type.hpp b/src/core/pool_type.hpp
index 25067ae27..4d20ed1ab 100644
--- a/src/core/pool_type.hpp
+++ b/src/core/pool_type.hpp
@@ -82,7 +82,7 @@ private:
template <class Titem, typename Tindex, size_t Tgrowth_step, size_t Tmax_size, PoolType Tpool_type = PT_NORMAL, bool Tcache = false, bool Tzero = true>
struct Pool : PoolBase {
/* Ensure Tmax_size is within the bounds of Tindex. */
- assert_compile((Tmax_size - 1) >> 8 * sizeof(Tindex) == 0);
+ assert_compile((uint64)(Tmax_size - 1) >> 8 * sizeof(Tindex) == 0);
static const size_t MAX_SIZE = Tmax_size; ///< Make template parameter accessible from outside