From 476366249e1fda7710a389cd41c57db42305e0d4 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 11 Sep 2015 16:03:30 -0700 Subject: [PATCH] mkvparser: fix type warnings Change-Id: Ia77a9a4e694986ece4c2e0f86f2857f320432f48 --- mkvparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkvparser.cpp b/mkvparser.cpp index 6f44454..f2855d5 100644 --- a/mkvparser.cpp +++ b/mkvparser.cpp @@ -337,7 +337,7 @@ long UnserializeString(IMkvReader* pReader, long long pos, long long size, unsigned char* const buf = reinterpret_cast(str); - const long status = pReader->Read(pos, size, buf); + const long status = pReader->Read(pos, static_cast(size), buf); if (status) { delete[] str; @@ -523,7 +523,7 @@ long long EBMLHeader::Parse(IMkvReader* pReader, long long& pos) { long long end = (available >= 1024) ? 1024 : available; // Scan until we find what looks like the first byte of the EBML header. - const int kMaxScanBytes = (available >= 1024) ? 1024 : available; + const long long kMaxScanBytes = (available >= 1024) ? 1024 : available; const unsigned char kEbmlByte0 = 0x1A; unsigned char scan_byte = 0;