summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-01 19:39:55 +0200
committerGitHub <noreply@github.com>2021-04-01 19:39:55 +0200
commit4d501655adfa0b9e44bd365ba396580461d40a48 (patch)
treeb6a675c6caa609d98d8a36a56bdd7da69619eeed /src/core
parent501087058ebd1565f17e08554cc70c56f52c0d79 (diff)
downloadopenttd-4d501655adfa0b9e44bd365ba396580461d40a48.tar.xz
Fix: building on Raspberry Pi failed because of const vs constexpr (#8924)
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 e847dfbb7..33f952dde 100644
--- a/src/core/pool_type.hpp
+++ b/src/core/pool_type.hpp
@@ -82,7 +82,7 @@ struct Pool : PoolBase {
/* Ensure Tmax_size is within the bounds of Tindex. */
static_assert((uint64)(Tmax_size - 1) >> 8 * sizeof(Tindex) == 0);
- static const size_t MAX_SIZE = Tmax_size; ///< Make template parameter accessible from outside
+ static constexpr size_t MAX_SIZE = Tmax_size; ///< Make template parameter accessible from outside
const char * const name; ///< Name of this pool