summaryrefslogtreecommitdiff
path: root/src/core/smallstack_type.hpp
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2021-01-08 10:16:18 +0000
committerGitHub <noreply@github.com>2021-01-08 11:16:18 +0100
commit9b800a96ed32720ff60b74e498a0e0a6351004f9 (patch)
tree3f287d339e15c4902ee415556475fd9b2918d33c /src/core/smallstack_type.hpp
parentc1fddb9a6ae5c3af6865461a7295788a341011a2 (diff)
downloadopenttd-9b800a96ed32720ff60b74e498a0e0a6351004f9.tar.xz
Codechange: Remove min/max functions in favour of STL variants (#8502)
Diffstat (limited to 'src/core/smallstack_type.hpp')
-rw-r--r--src/core/smallstack_type.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/smallstack_type.hpp b/src/core/smallstack_type.hpp
index bf44f00c8..c05454b8a 100644
--- a/src/core/smallstack_type.hpp
+++ b/src/core/smallstack_type.hpp
@@ -46,7 +46,7 @@ public:
if (index < Tmax_size) {
this->data[index].valid = true;
this->first_free = index + 1;
- this->first_unused = max(this->first_unused, this->first_free);
+ this->first_unused = std::max(this->first_unused, this->first_free);
}
return index;
}
@@ -58,7 +58,7 @@ public:
inline void Destroy(Tindex index)
{
this->data[index].valid = false;
- this->first_free = min(this->first_free, index);
+ this->first_free = std::min(this->first_free, index);
}
private: