Ticket #9749: bzip2.patch
File bzip2.patch, 894 bytes (added by , 7 years ago) |
---|
-
bzip2.hpp
old new 350 350 ( const char*& src_begin, const char* src_end, 351 351 char*& dest_begin, char* dest_end, bool flush ) 352 352 { 353 int result; 354 do { 353 355 if (eof_) { 354 356 // reset the stream if there are more characters 355 357 if(src_begin == src_end) … … 360 362 if (!ready()) 361 363 init(); 362 364 before(src_begin, src_end, dest_begin, dest_end); 363 intresult = decompress();365 result = decompress(); 364 366 if(result == bzip2::ok && flush) 365 367 result = check_end(src_begin, dest_begin); 366 368 after(src_begin, dest_begin); 367 369 bzip2_error::check BOOST_PREVENT_MACRO_SUBSTITUTION(result); 368 370 eof_ = result == bzip2::stream_end; 371 } while (result == bzip2::stream_end && src_begin != src_end); 369 372 return true; 370 373 } 371 374