Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill committed Mar 18, 2024
1 parent d185b86 commit fe24eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_calculations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,12 @@ TEST(HashTest, Cksum16) {
ASSERT_EQ(expected, output);
}

uint32_t calcCrc(const char *kind, std::initializer_list<char> data) {
uint32_t calcCrc(const char *kind, std::initializer_list<unsigned char> data) {
const auto ptr = CalculationsMap::get_instance()->get_copy(kind);
EXPECT_NE(nullptr, ptr);
if (!ptr) return -1;

return ptr->output(&data[0]), data.size());
return ptr->output(reinterpret_cast<const char *>(&*data.begin())), data.size());
}

TEST(HashTest, Crc16) {
Expand Down

0 comments on commit fe24eba

Please sign in to comment.