Skip to content

Commit

Permalink
fix more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Sep 17, 2021
1 parent b5a16ed commit 262d16c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/adios2/operator/compress/CompressPNG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ size_t CompressPNG::Decompress(const void *bufferIn, const size_t sizeIn,
const Dims &blockStart, const Dims &blockCount,
const Params &parameters, Params &info)
{
const size_t sizeOut = std::accumulate(blockCount.begin(), blockCount.end(),
helper::GetDataTypeSize(type),
std::multiplies<size_t>());
png_image image;
std::memset(&image, 0, sizeof(image));
image.version = PNG_IMAGE_VERSION;
Expand Down

0 comments on commit 262d16c

Please sign in to comment.