Skip to content

Commit

Permalink
[C++] Fix type conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Jan 18, 2024
1 parent 363f450 commit a43b4ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sbe-tool/src/test/cpp/FieldAccessOrderCheckTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t>(strlen(bIn)));
auto *cIn = "def";
encoder.putC(cIn, strlen(cIn));
encoder.putC(cIn, static_cast<uint8_t>(strlen(cIn)));
encoder.checkEncodingIsComplete();

MultipleVarLength decoder;
Expand Down Expand Up @@ -262,7 +262,7 @@ TEST_F(FieldAccessOrderCheckTest, disallowsSkippingEncodingOfVariableLengthField
try
{
auto *cIn = "cIn";
encoder.putC(cIn, std::strlen(cIn));
encoder.putC(cIn, static_cast<uint8_t>(std::strlen(cIn)));
}
catch (const std::exception &e)
{
Expand Down

0 comments on commit a43b4ae

Please sign in to comment.