diff --git a/sbe-tool/src/test/cpp/FieldAccessOrderCheckTest.cpp b/sbe-tool/src/test/cpp/FieldAccessOrderCheckTest.cpp index 2c5fa0b1a0..9f7bb9184c 100644 --- a/sbe-tool/src/test/cpp/FieldAccessOrderCheckTest.cpp +++ b/sbe-tool/src/test/cpp/FieldAccessOrderCheckTest.cpp @@ -123,9 +123,9 @@ TEST_F(FieldAccessOrderCheckTest, allowsEncodingAndDecodingVariableLengthFieldsI encoder.wrapForEncode(m_buffer, OFFSET, BUFFER_LEN); encoder.a(42); auto *bIn = "abc"; - encoder.putB(bIn, strlen(bIn)); + encoder.putB(bIn, static_cast(strlen(bIn))); auto *cIn = "def"; - encoder.putC(cIn, strlen(cIn)); + encoder.putC(cIn, static_cast(strlen(cIn))); encoder.checkEncodingIsComplete(); MultipleVarLength decoder; @@ -262,7 +262,7 @@ TEST_F(FieldAccessOrderCheckTest, disallowsSkippingEncodingOfVariableLengthField try { auto *cIn = "cIn"; - encoder.putC(cIn, std::strlen(cIn)); + encoder.putC(cIn, static_cast(std::strlen(cIn))); } catch (const std::exception &e) {