Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed Apr 5, 2024
1 parent 2e0d00a commit 4f9581e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/par2creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ bool Par2Creator::CalculateProcessBlockSize(size_t memorylimit)
deferhashcomputation = true;
}

if (MAX_CHUNK_SIZE && chunksize > MAX_CHUNK_SIZE)
if (MAX_CHUNK_SIZE != 0 && chunksize > MAX_CHUNK_SIZE)
{
chunksize = MAX_CHUNK_SIZE;
deferhashcomputation = false;
Expand Down
2 changes: 1 addition & 1 deletion src/par2repairer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,7 @@ bool Par2Repairer::AllocateBuffers(size_t memorylimit)
chunksize = (size_t)blocksize;
}

if (MAX_CHUNK_SIZE && chunksize > MAX_CHUNK_SIZE)
if (MAX_CHUNK_SIZE != 0 && chunksize > MAX_CHUNK_SIZE)
chunksize = MAX_CHUNK_SIZE;

if (noiselevel >= nlDebug)
Expand Down

0 comments on commit 4f9581e

Please sign in to comment.