diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-21 04:53:22 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-21 04:53:22 +0300 |
commit | 96fef8f4aa43bc60b54e765da20d465a6830e0c7 (patch) | |
tree | c2d4fd68c9fc329b1f654c9392e6aea3df0056cc /src/file_reader.hpp | |
parent | b9304bc1342ccfa645ffb422fbaad1965e64178f (diff) | |
download | libADLMIDI-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.hpp | 8 |
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; } }; |