aboutsummaryrefslogtreecommitdiff
path: root/src/file_reader.hpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-06-21 04:53:22 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-06-21 04:53:22 +0300
commit96fef8f4aa43bc60b54e765da20d465a6830e0c7 (patch)
treec2d4fd68c9fc329b1f654c9392e6aea3df0056cc /src/file_reader.hpp
parentb9304bc1342ccfa645ffb422fbaad1965e64178f (diff)
downloadlibADLMIDI-96fef8f4aa43bc60b54e765da20d465a6830e0c7.tar.gz
libADLMIDI-96fef8f4aa43bc60b54e765da20d465a6830e0c7.tar.bz2
libADLMIDI-96fef8f4aa43bc60b54e765da20d465a6830e0c7.zip
Fix MSVC's warning C4267 in the file reader
Diffstat (limited to 'src/file_reader.hpp')
-rw-r--r--src/file_reader.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file_reader.hpp b/src/file_reader.hpp
index c2cfe7b..0f630df 100644
--- a/src/file_reader.hpp
+++ b/src/file_reader.hpp
@@ -285,10 +285,10 @@ public:
return 0;
if(!m_fp)
return m_mp_size; //Size of memory block is well known
- size_t old_pos = tell();
- seek(0, FileAndMemReader::END);
- size_t file_size = tell();
- seek(old_pos, FileAndMemReader::SET);
+ size_t old_pos = this->tell();
+ seek(0l, FileAndMemReader::END);
+ size_t file_size = this->tell();
+ seek(static_cast<long>(old_pos), FileAndMemReader::SET);
return file_size;
}
};