History

Consistently compare integers with integers and bools with bools

MSVC warns when comparing integers with booleans in with the gtest assertion macros.

Martin Storsjö committed 11 years ago

Commit 99925981 parent cd552013 files · +14 −14Browse files

Showing the changes to test/api/decoder_test.cpp (1 of 3 files). Show all

Unified · Split

test/api/decoder_test.cpp+1−1
@@ -29,7 +29,7 @@ TEST_F (DecoderCapabilityTest, JustInit) { · 28 unmodified lines
2929 EXPECT_EQ (sDecCap.iMaxCpb, 20000);
3030 EXPECT_EQ (sDecCap.iMaxDpb, 20480);
3131 EXPECT_EQ (sDecCap.iMaxBr, 20000);
32− EXPECT_EQ (sDecCap.bRedPicCap, 0);
32+ EXPECT_EQ (sDecCap.bRedPicCap, false);
3333 }
3434
3535

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