History

Fix build warnings on MSVC

Don't compare a bool to an unsigned int constant, but compare to proper bool constants instead.

Martin Storsjö committed 9 years ago

Commit d52aadf1 parent 6d9220c1 file · +2 −2Browse files

Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 1 file). Show all

Unified · Split

test/decoder/DecUT_DecExt.cpp+2−2
@@ -622,7 +622,7 @@ void DecoderInterfaceTest::TestGetDecSarInfo() { · 621 unmodified lines
622622 m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo);
623623 EXPECT_EQ (0u, sVuiSarInfo.uiSarWidth);
624624 EXPECT_EQ (0u, sVuiSarInfo.uiSarHeight);
625− EXPECT_EQ (0u, sVuiSarInfo.bOverscanAppropriateFlag);
625+ EXPECT_EQ (sVuiSarInfo.bOverscanAppropriateFlag, false); // EXPECT_EQ does not like "false" as its first arg
626626 // setoption not support,
627627 eRet = (CM_RETURN)m_pDec->SetOption (DECODER_OPTION_GET_SAR_INFO, NULL);
628628 EXPECT_EQ (eRet, cmInitParaError);
@@ -632,7 +632,7 @@ void DecoderInterfaceTest::TestGetDecSarInfo() { · 3 unmodified lines
632632 m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo);
633633 EXPECT_EQ (80u, sVuiSarInfo.uiSarWidth); //DO NOT MODIFY the data value
634634 EXPECT_EQ (33u, sVuiSarInfo.uiSarHeight); //DO NOT MODIFY the data value
635− EXPECT_EQ (1u, sVuiSarInfo.bOverscanAppropriateFlag); //DO NOT MODIFY the data value
635+ EXPECT_EQ (true, sVuiSarInfo.bOverscanAppropriateFlag); //DO NOT MODIFY the data value
636636 Uninit();
637637 }
638638

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t