Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/src/test_compressors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ TEST_CASE("compression with header configuration", "[compressors]") {
std::generate(quantized, quantized + ndof, f);
const std::size_t quantizedLen = ndof * sizeof(*quantized);
// `dst` must have the correct alignment for the quantization type.
std::int64_t *const dst = new std::int64_t[ndof];
long *const dst = new long[ndof];

std::int64_t *const quantized_ = new std::int64_t[ndof];
std::copy(quantized, quantized + ndof, quantized_);
Expand Down Expand Up @@ -193,7 +193,7 @@ TEST_CASE("decompression with header configuration", "[compressors]") {
SECTION("zstd") {
e.set_compressor(mgard::pb::Encoding::CPU_HUFFMAN_ZSTD);

std::int64_t *const quantized_ = new std::int64_t[ndof];
long *const quantized_ = new long[ndof];
std::copy(quantized, quantized + ndof, quantized_);
const mgard::MemoryBuffer<unsigned char> out =
mgard::compress_memory_huffman(quantized_, ndof);
Expand Down