This avoids this warning: test/api/BaseThreadDecoderTest.cpp(280) : warning C4267: 'initializing' : conversion from 'size_t' to 'int32_t', possible loss of data
Showing the changes to test/api/BaseThreadDecoderTest.cpp (1 of 1 file). Show all
Unified · Split
| @@ -277,7 +277,7 @@ bool BaseThreadDecoderTest::ThreadDecodeFile (const char* fileName, Callback* cb · 276 unmodified lines | ||
| 277 | 277 | memset (&sBufInfo, 0, sizeof (SBufferInfo)); |
| 278 | 278 | int32_t bufPos = 0; |
| 279 | 279 | int32_t bytesConsumed = 0; |
| 280 | − int32_t fileSize = buf.Length(); | |
| 280 | + int32_t fileSize = (int32_t)buf.Length(); | |
| 281 | 281 | while (bytesConsumed < fileSize) { |
| 282 | 282 | int32_t frameSize = ReadFrame (buf.data(), fileSize, bufPos); |
| 283 | 283 | if (::testing::Test::HasFatalFailure()) { |