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###
./rootfiles/
./pics/
./images/
./hotfixes/
.vscode/
build/
###file types to ignore###
*.swp

View File

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