mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Clear IOStream error bits to allow I/O operations again
This commit is contained in:
parent
8e774afb05
commit
f7b9f4493d
1 changed files with 1 additions and 0 deletions
1
external/cosmotool/src/fortran.cpp
vendored
1
external/cosmotool/src/fortran.cpp
vendored
|
@ -78,6 +78,7 @@ int64_t UnformattedRead::position() const
|
||||||
|
|
||||||
void UnformattedRead::seek(int64_t pos)
|
void UnformattedRead::seek(int64_t pos)
|
||||||
{
|
{
|
||||||
|
f->clear();
|
||||||
f->seekg(pos, istream::beg);
|
f->seekg(pos, istream::beg);
|
||||||
checkPointRef = checkPointAccum = 0;
|
checkPointRef = checkPointAccum = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue