ref: 8829f740ad417ddffd6c60be75d464d887f4bbdc
parent: 4ba1716e411818a04263cbcd99e679aee873a207
parent: f062c225caf7295256e631a643b8659b8374891b
author: huili2 <[email protected]>
date: Tue Sep 22 04:16:03 EDT 2020
Merge pull request #3337 from mstorsjo/silence-msvc Add a cast to silence an MSVC warning
--- 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()) {