kax_file_c: fix compilation with mingw

This commit is contained in:
Moritz Bunkus 2015-12-22 20:30:01 +01:00
parent 58c8d57e71
commit b60c62c863

View File

@ -316,7 +316,7 @@ kax_file_c::get_element_size(EbmlElement *e) {
auto max_end_pos = e->GetElementPosition() + EBML_ID_LENGTH(static_cast<const EbmlId &>(*e));
for (size_t idx = 0, end = m->ListSize(); end > idx; ++idx)
max_end_pos = std::max(max_end_pos, static_cast<unsigned long>((*m)[idx]->GetElementPosition() + get_element_size((*m)[idx])));
max_end_pos = std::max(max_end_pos, (*m)[idx]->GetElementPosition() + get_element_size((*m)[idx]));
return max_end_pos - e->GetElementPosition();
}