mirror of
https://github.com/sesps/EventBuilder_Skeleton.git
synced 2025-01-30 17:28:50 -05:00
Fix bug with zero file size edge case now needing to be file contains only header case
This commit is contained in:
parent
0ad5d9cd30
commit
7ba80ed4aa
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user