Skip to content

Commit

Permalink
fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Sep 5, 2024
1 parent 6b1fb71 commit 9f99bdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/crc64_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static int s_test_large_buffer_crc64(struct aws_allocator *allocator, void *ctx)
const size_t len = 3 * 1024 * 1024 * 1024ULL;
const uint8_t *many_zeroes = aws_mem_calloc(allocator, len, sizeof(uint8_t));
uint64_t result = aws_checksums_crc64nvme_u64(many_zeroes, len, 0);
aws_mem_release(allocator, many_zeroes);
aws_mem_release(allocator, (void *)many_zeroes);
ASSERT_HEX_EQUALS(0xa1dddd7c6fd17075, result);
return AWS_OP_SUCCESS;
#endif
Expand Down
2 changes: 1 addition & 1 deletion tests/crc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static int s_test_large_buffer_crc32(struct aws_allocator *allocator, void *ctx)
const size_t len = 3 * 1024 * 1024 * 1024ULL;
const uint8_t *many_zeroes = aws_mem_calloc(allocator, len, sizeof(uint8_t));
uint32_t result = aws_checksums_crc32_u64(many_zeroes, len, 0);
aws_mem_release(allocator, many_zeroes);
aws_mem_release(allocator, (void *)many_zeroes);
ASSERT_HEX_EQUALS(0x480BBE37, result);
return AWS_OP_SUCCESS;
#endif
Expand Down

0 comments on commit 9f99bdc

Please sign in to comment.