From b60c62c863df3c4349c27b56415ba3bd764bca26 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 22 Dec 2015 20:30:01 +0100 Subject: [PATCH] kax_file_c: fix compilation with mingw --- src/common/kax_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/kax_file.cpp b/src/common/kax_file.cpp index 17e3d51de..90542b338 100644 --- a/src/common/kax_file.cpp +++ b/src/common/kax_file.cpp @@ -316,7 +316,7 @@ kax_file_c::get_element_size(EbmlElement *e) { auto max_end_pos = e->GetElementPosition() + EBML_ID_LENGTH(static_cast(*e)); for (size_t idx = 0, end = m->ListSize(); end > idx; ++idx) - max_end_pos = std::max(max_end_pos, static_cast((*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(); }