aboutsummaryrefslogtreecommitdiff
path: root/src/stable/bzip2.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-10-17 07:24:06 +0000
committerMike Buland <eichlan@xagasoft.com>2012-10-17 07:24:06 +0000
commitb20414ac1fe80a71a90601f4cd1767fa7014a9ba (patch)
treec33faba92ccc7f5b48d297c75df1b653e33d8b92 /src/stable/bzip2.cpp
parent2a6beffd5f9d6c6fd5374a6c66ef9d83d0cfebf2 (diff)
downloadlibbu++-b20414ac1fe80a71a90601f4cd1767fa7014a9ba.tar.gz
libbu++-b20414ac1fe80a71a90601f4cd1767fa7014a9ba.tar.bz2
libbu++-b20414ac1fe80a71a90601f4cd1767fa7014a9ba.tar.xz
libbu++-b20414ac1fe80a71a90601f4cd1767fa7014a9ba.zip
Wow, strange, strange issue with bzip2 resync and tell().
Diffstat (limited to 'src/stable/bzip2.cpp')
-rw-r--r--src/stable/bzip2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stable/bzip2.cpp b/src/stable/bzip2.cpp
index dd2ed53..11b8873 100644
--- a/src/stable/bzip2.cpp
+++ b/src/stable/bzip2.cpp
@@ -162,7 +162,7 @@ Bu::size Bu::BZip2::read( void *pData, Bu::size nBytes )
162 { 162 {
163 if( rNext.isSeekable() ) 163 if( rNext.isSeekable() )
164 { 164 {
165 rNext.seek( -pState->avail_in ); 165 rNext.seek( -(Bu::size)pState->avail_in );
166 } 166 }
167 } 167 }
168 return nBytes-pState->avail_out; 168 return nBytes-pState->avail_out;