Skip to content

Commit

Permalink
Merge pull request #206 from karjonas/warncalloc
Browse files Browse the repository at this point in the history
Fix calloc-transposed-args warning
  • Loading branch information
syoyo authored May 10, 2024
2 parents 6b8b66f + 38ba5b1 commit 2a5ea89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyexr.h
Original file line number Diff line number Diff line change
Expand Up @@ -4923,7 +4923,7 @@ static int DecodeTiledLevel(EXRImage* exr_image, const EXRHeader* exr_header,
}
#endif
exr_image->tiles = static_cast<EXRTile*>(
calloc(sizeof(EXRTile), static_cast<size_t>(num_tiles)));
calloc(static_cast<size_t>(num_tiles), sizeof(EXRTile)));

#if TINYEXR_HAS_CXX11 && (TINYEXR_USE_THREAD > 0)
std::vector<std::thread> workers;
Expand Down

0 comments on commit 2a5ea89

Please sign in to comment.