From f46566f19a0b15653ebc881de40e1ecc6dc83764 Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Thu, 5 May 2016 11:56:10 -0700 Subject: [PATCH] mkvreader: Fix shorten-64-to-32 warning in 32 bit builds. BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1207 Change-Id: Ie1c97a314fefdf14dce455da16f5a29218ba4cf8 --- mkvparser/mkvreader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkvparser/mkvreader.cc b/mkvparser/mkvreader.cc index 9f90d8c..b8fd00c 100644 --- a/mkvparser/mkvreader.cc +++ b/mkvparser/mkvreader.cc @@ -117,7 +117,7 @@ int MkvReader::Read(long long offset, long len, unsigned char* buffer) { if (status) return -1; // error #else - fseek(m_file, offset, SEEK_SET); + fseeko(m_file, static_cast(offset), SEEK_SET); #endif const size_t size = fread(buffer, 1, len, m_file); @@ -128,4 +128,4 @@ int MkvReader::Read(long long offset, long len, unsigned char* buffer) { return 0; // success } -} // namespace mkvparser \ No newline at end of file +} // namespace mkvparser