ref: f062c225caf7295256e631a643b8659b8374891b
parent: 4ba1716e411818a04263cbcd99e679aee873a207
author: Martin Storsjö <martin@martin.st>
date: Thu Sep 17 04:54:52 EDT 2020
Add a cast to silence an MSVC warning This avoids this warning: test/api/BaseThreadDecoderTest.cpp(280) : warning C4267: 'initializing' : conversion from 'size_t' to 'int32_t', possible loss of data
--- a/test/api/BaseThreadDecoderTest.cpp
+++ b/test/api/BaseThreadDecoderTest.cpp
@@ -277,7 +277,7 @@
memset (&sBufInfo, 0, sizeof (SBufferInfo));
int32_t bufPos = 0;
int32_t bytesConsumed = 0;
- int32_t fileSize = buf.Length();
+ int32_t fileSize = (int32_t)buf.Length();
while (bytesConsumed < fileSize) {
int32_t frameSize = ReadFrame (buf.data(), fileSize, bufPos);
if (::testing::Test::HasFatalFailure()) {