diff options
author | kwolekr <kwolekr@minetest.net> | 2015-10-04 02:50:04 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-10-04 04:00:16 -0400 |
commit | f0cd5da687ca216b4bdd9abe7bc8038a679d3763 (patch) | |
tree | 329909b22c4494a2df2249c5697acb961b0fc527 /src/staticobject.cpp | |
parent | b12bdcce348323247811b9a0299e2e9294991d13 (diff) | |
download | minetest-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.cpp | 2 |
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; |