1
0
Fork 0

Fix a problem for MSVC

This commit is contained in:
Erik Hofman 2016-08-12 11:48:34 +02:00
parent 63ab28f0e6
commit bd9e43e613

View file

@ -291,7 +291,7 @@ private:
void onFinished() void onFinished()
{ {
flightgear::PolyLineList::const_iterator begin = m_parsedLines.begin() + m_lineInsertCount; flightgear::PolyLineList::const_iterator begin = m_parsedLines.begin() + m_lineInsertCount;
unsigned int numToAdd = std::min(1000UL, m_parsedLines.size() - m_lineInsertCount); unsigned int numToAdd = std::min<unsigned long>(1000UL, m_parsedLines.size() - m_lineInsertCount);
flightgear::PolyLineList::const_iterator end = begin + numToAdd; flightgear::PolyLineList::const_iterator end = begin + numToAdd;
flightgear::PolyLine::bulkAddToSpatialIndex(begin, end); flightgear::PolyLine::bulkAddToSpatialIndex(begin, end);