mirror of
https://github.com/facebook/zstd.git
synced 2025-12-24 00:04:27 -05:00
converting to if
This commit is contained in:
parent
3a4c8cc9b3
commit
0a172c5e43
@ -1515,7 +1515,10 @@ static int ZSTD_DCtx_isOverflow(ZSTD_DStream* zds, size_t const neededInBuffSize
|
||||
|
||||
static void ZSTD_DCtx_updateOversizedDuration(ZSTD_DStream* zds, size_t const neededInBuffSize, size_t const neededOutBuffSize)
|
||||
{
|
||||
zds->oversizedDuration += ZSTD_DCtx_isOverflow(zds, neededInBuffSize, neededOutBuffSize) != 0;
|
||||
if (ZSTD_DCtx_isOverflow(zds, neededInBuffSize, neededOutBuffSize))
|
||||
zds->oversizedDuration++;
|
||||
else
|
||||
zds->oversizedDuration = 0;
|
||||
}
|
||||
|
||||
static int ZSTD_DCtx_isOversizedTooLong(ZSTD_DStream* zds)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user