Skip to content

Commit

Permalink
fix test build and exported symbol needed for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHenson committed Jan 23, 2024
1 parent 5473f71 commit d61841a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/aws/checksums/private/crc64_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

AWS_EXTERN_C_BEGIN

uint64_t aws_checksums_crc64xz_sw(const uint8_t *input, int length, uint64_t prev_crc64);
AWS_CHECKSUMS_API uint64_t aws_checksums_crc64xz_sw(const uint8_t *input, int length, uint64_t prev_crc64);

#if INTPTR_MAX == INT64_MAX && defined(AWS_HAVE_CLMUL)
uint64_t aws_checksums_crc64xz_intel_clmul(const uint8_t *input, int length, uint64_t previousCrc64);
Expand Down
2 changes: 1 addition & 1 deletion tests/crc64_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int s_test_crc_residue(
size_t length,
uint64_t expected) {

for (int len = 0; len < length; ++len) {
for (int len = 0; len < (int)length; ++len) {
uint64_t crc = func(input, len, 0);
uint64_t residue = func((const uint8_t *)&crc, 8, crc); // assuming little endian
ASSERT_HEX_EQUALS(expected, residue, "len %d residue %s(%s)", len, func_name, data_name);
Expand Down

0 comments on commit d61841a

Please sign in to comment.