Skip to content
Snippets Groups Projects
Commit 0e5c8855 authored by William F Godoy's avatar William F Godoy
Browse files

Attempt to fix Windows bug

parent 197e31b2
No related branches found
No related tags found
1 merge request!294Bp1read : Initial Reading Capabilities and latest API
......@@ -145,8 +145,8 @@ size_t FileFStream::GetSize()
{
const auto currentPosition = m_FileStream.tellg();
m_FileStream.seekg(0, std::ios_base::end);
const auto size = m_FileStream.tellg();
if (size == -1)
const std::streampos size = m_FileStream.tellg();
if (static_cast<int>(size) == -1)
{
throw std::ios_base::failure("ERROR: couldn't get size of " + m_Name +
" file\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment