Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix data type in test to pass build #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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