Skip to content

Commit

Permalink
the HufDec struct used during decompression also contains a pointer (#…
Browse files Browse the repository at this point in the history
…1138)

Account for that for 32-bit machines in the unit / coverage test.

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd authored Sep 2, 2021
1 parent bb23362 commit fe5bad3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/OpenEXRCoreTest/compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,9 @@ testHUF (const std::string& tempdir)
{
uint64_t esize = internal_exr_huf_compress_spare_bytes ();
uint64_t dsize = internal_exr_huf_decompress_spare_bytes ();
EXRCORE_TEST (esize == 65537 * (8 + 8 + sizeof(void*) + 4));
EXRCORE_TEST (dsize == (65537 * 8 + (1 << 14) * 16));
EXRCORE_TEST (esize == 65537 * (8 + 8 + sizeof (uint64_t*) + 4));
EXRCORE_TEST (
dsize == (65537 * 8 + (1 << 14) * (sizeof (uint32_t*) + 4 + 4)));

std::vector<uint8_t> hspare;

Expand Down

0 comments on commit fe5bad3

Please sign in to comment.