diff --git a/tests/test_calculations.cpp b/tests/test_calculations.cpp index f7dafdba..5446a91e 100644 --- a/tests/test_calculations.cpp +++ b/tests/test_calculations.cpp @@ -435,12 +435,12 @@ TEST(HashTest, Cksum16) { ASSERT_EQ(expected, output); } -uint32_t calcCrc(const char *kind, std::initializer_list data) { +uint32_t calcCrc(const char *kind, std::initializer_list 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(&*data.begin())), data.size()); } TEST(HashTest, Crc16) {