From b20414ac1fe80a71a90601f4cd1767fa7014a9ba Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 17 Oct 2012 07:24:06 +0000 Subject: Wow, strange, strange issue with bzip2 resync and tell(). --- src/stable/bzip2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stable') 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 ) { if( rNext.isSeekable() ) { - rNext.seek( -pState->avail_in ); + rNext.seek( -(Bu::size)pState->avail_in ); } } return nBytes-pState->avail_out; -- cgit v1.2.3