From fe24eba264d8f411d8f8ee0e0a6ebf8e69ae6636 Mon Sep 17 00:00:00 2001 From: Vladimir Still Date: Mon, 18 Mar 2024 04:08:42 -0700 Subject: [PATCH] Fix compilation --- tests/test_calculations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {