ref: fd2ccb9bd8b77f33a4b87a4d34670d7857c4d76e
parent: 4484df4bbb4561128a3320a1ab329cff20843431
parent: 4c706b1979b05d6900b35c45ce0d1e5cae12b8ef
author: huili2 <huili2@cisco.com>
date: Wed Apr 19 10:56:07 EDT 2017
Merge pull request #2724 from mstorsjo/fix-warnings Fix warnings about comparison between signed and unsigned
--- a/test/api/decode_api_test.cpp
+++ b/test/api/decode_api_test.cpp
@@ -1017,18 +1017,18 @@
rv = decoder_->GetOption (DECODER_OPTION_LEVEL, &uiLevel);
ASSERT_TRUE (rv == 0);
- ASSERT_EQ (sDecStat.uiWidth, p.width);
- ASSERT_EQ (sDecStat.uiHeight, p.height);
- ASSERT_EQ (sDecStat.uiResolutionChangeTimes, (i + 1));
+ ASSERT_EQ (sDecStat.uiWidth, (unsigned int) p.width);
+ ASSERT_EQ (sDecStat.uiHeight, (unsigned int) p.height);
+ ASSERT_EQ (sDecStat.uiResolutionChangeTimes, (unsigned int) (i + 1));
EXPECT_EQ (sDecStat.iCurrentActiveSpsId, 0);
EXPECT_EQ (sDecStat.iCurrentActivePpsId, 0);
- ASSERT_EQ (sDecStat.uiDecodedFrameCount, iTotalFrmCnt);
+ ASSERT_EQ (sDecStat.uiDecodedFrameCount, (unsigned int) iTotalFrmCnt);
ASSERT_EQ (sDecStat.uiProfile, uiProfile);
ASSERT_EQ (sDecStat.uiLevel, uiLevel);
EXPECT_TRUE (sDecStat.fActualAverageFrameSpeedInMs != 0.);
EXPECT_TRUE (sDecStat.fAverageFrameSpeedInMs != 0.);
EXPECT_TRUE (sDecStat.iAvgLumaQp != 0);
- EXPECT_EQ (sDecStat.uiIDRCorrectNum, (i + 1));
+ EXPECT_EQ (sDecStat.uiIDRCorrectNum, (unsigned int) (i + 1));
}
//set next width & height
p.width += 16;