Fix bug with zero file size edge case now needing to be file contains only header case

This commit is contained in:
Gordon McCann 2022-06-22 15:33:49 -04:00
parent 0ad5d9cd30
commit 7ba80ed4aa
2 changed files with 3 additions and 5 deletions

6
.gitignore vendored
View File

@ -1,8 +1,6 @@
###directories to ignore### ###directories to ignore###
./rootfiles/ .vscode/
./pics/ build/
./images/
./hotfixes/
###file types to ignore### ###file types to ignore###
*.swp *.swp

View File

@ -47,7 +47,7 @@ namespace EventBuilder {
m_file->seekg(0, std::ios_base::end); m_file->seekg(0, std::ios_base::end);
m_size = m_file->tellg(); m_size = m_file->tellg();
if(m_size == 0) if(m_size == 2)
{ {
m_eofFlag = true; m_eofFlag = true;
} }