summaryrefslogtreecommitdiff
path: root/src/staticobject.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-10-04 02:50:04 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-04 04:00:16 -0400
commitf0cd5da687ca216b4bdd9abe7bc8038a679d3763 (patch)
tree329909b22c4494a2df2249c5697acb961b0fc527 /src/staticobject.cpp
parentb12bdcce348323247811b9a0299e2e9294991d13 (diff)
downloadminetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.tar.gz
minetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.tar.bz2
minetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.zip
Define and use limit constants for Irrlicht fixed-width types
Diffstat (limited to 'src/staticobject.cpp')
-rw-r--r--src/staticobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/staticobject.cpp b/src/staticobject.cpp
index e226f0b2e..d656b6221 100644
--- a/src/staticobject.cpp
+++ b/src/staticobject.cpp
@@ -50,7 +50,7 @@ void StaticObjectList::serialize(std::ostream &os)
size_t count = m_stored.size() + m_active.size();
// Make sure it fits into u16, else it would get truncated and cause e.g.
// issue #2610 (Invalid block data in database: unsupported NameIdMapping version).
- if (count > (u16)-1) {
+ if (count > U16_MAX) {
errorstream << "StaticObjectList::serialize(): "
<< "too many objects (" << count << ") in list, "
<< "not writing them to disk." << std::endl;