diff --git a/test/language/parameterized_types/cpp/PackedArrayElementParamTest.cpp b/test/language/parameterized_types/cpp/PackedArrayElementParamTest.cpp index 9fae3dd20..9249470cd 100644 --- a/test/language/parameterized_types/cpp/PackedArrayElementParamTest.cpp +++ b/test/language/parameterized_types/cpp/PackedArrayElementParamTest.cpp @@ -43,7 +43,7 @@ class PackedArrayElementParamTest : public ::testing::Test size_t getUnpackedDatabaseBitSize(uint16_t numBlocks) { size_t bitSize = 16; // numBlocks - bitSize += numBlocks * (16 + 32); // headers + bitSize += static_cast(numBlocks) * (16 + 32); // headers for (size_t i = 0; i < numBlocks; ++i) { bitSize += 64 + (i + 1) * 64; // blocks[i]