diff --git a/ChangeLog.txt b/ChangeLog.txt index d6dfad6c96..9a85bf4ac5 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2016-01-09 20:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * contrib/hbbz2io/bz2io.c + * pacified warning + 2016-01-09 20:30 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/hbbz2/core.c * contrib/hbbz2/hbbz2.hbp diff --git a/contrib/hbbz2io/bz2io.c b/contrib/hbbz2io/bz2io.c index dcb20c6fde..863b5cb42c 100644 --- a/contrib/hbbz2io/bz2io.c +++ b/contrib/hbbz2io/bz2io.c @@ -447,8 +447,14 @@ static HB_SIZE s_fileRead( PHB_FILE pFile, void * buffer, HB_SIZE nSize, } } if( pFile->bz2.total_out_lo32 != 0 || pFile->bz2.total_out_hi32 != 0 ) + { +#if HB_SIZE_MAX <= UINT_MAX + nResult = ( HB_SIZE ) pFile->bz2.total_out_lo32; +#else nResult = ( ( HB_SIZE ) pFile->bz2.total_out_hi32 << 32 ) | ( HB_SIZE ) pFile->bz2.total_out_lo32; +#endif + } pFile->seek_pos += hb_fileResult( nResult ); } else