We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65e3837 commit f9c359fCopy full SHA for f9c359f
src/io.cpp
@@ -460,9 +460,9 @@ std::streampos AnyStream::Size() {
460
std::streampos AnyStream::Tell() {
461
if (fStream != NULL) return fStream->tellp(); //openr
462
else if (igzStream != NULL)
463
- return igzStream->tellg(); //rdbuf()->pubseekoff( 0, std::ios_base::cur, std::ios_base::in);
+ return igzStream->rdbuf()->getPosition();
464
else if (ogzStream != NULL)
465
- return ogzStream->tellp(); //rdbuf()->pubseekoff(0, std::ios_base::cur, std::ios_base::out);
+ return ogzStream->tellp();
466
else {
467
assert(false);
468
throw; // getting rid of compiler warning
0 commit comments