From f0cd5da687ca216b4bdd9abe7bc8038a679d3763 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 4 Oct 2015 02:50:04 -0400 Subject: Define and use limit constants for Irrlicht fixed-width types --- src/staticobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/staticobject.cpp') 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; -- cgit v1.2.3