We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65e3837 + f9c359f commit 7efdfc1Copy full SHA for 7efdfc1
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