WSL/SLF GitLab Repository

Commit fd4ceeb3 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

A casting issue was preventing compilation on Windows

parent ebddecb6
......@@ -398,7 +398,7 @@ void SNIO::readMeteoData(const Date& dateStart, const Date& dateEnd,
//The following lines are an optimization to jump to the correct position in the file
streampos current_fpointer = vecIndex.at(ii).getIndex(dateStart);
if(current_fpointer!=-1) fin.seekg(current_fpointer);
if(current_fpointer!=(streampos)-1) fin.seekg(current_fpointer);
while (!fin.eof()) {
const streampos tmp_fpointer = fin.tellg();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment