Merge pull request #349 from Vort/master

Improve MSVC 2015 compatibility of FileSource plugin
This commit is contained in:
f4exb 2019-05-21 19:34:15 +02:00 committed by GitHub
commit 5f94a94a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ bool FileSourceInput::start()
QMutexLocker mutexLocker(&m_mutex);
qDebug() << "FileSourceInput::start";
if (m_ifstream.tellg() != 0) {
if (m_ifstream.tellg() != (std::streampos)0) {
m_ifstream.clear();
m_ifstream.seekg(sizeof(FileRecord::Header), std::ios::beg);
}