From a43b4ae6cd1111aa6a10aaf2a4874fdfed87089a Mon Sep 17 00:00:00 2001 From: mjpt777 Date: Thu, 18 Jan 2024 17:04:42 +0000 Subject: [PATCH] [C++] Fix type conversion warnings. --- sbe-tool/src/test/cpp/FieldAccessOrderCheckTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {