History

Add a comparison in ASSERT_TRUE

This makes sure the compared value actually is bool, not any other type that can be used as condition. This fixes warnings with MSVC.

Martin Storsjö committed 11 years ago

Commit 93cb6171 parent 99925981 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
@@ -122,9 +122,9 @@ void DecoderInterfaceTest::DecoderBs (const char* sFileName) { · 121 unmodified lines
122 122
123#if defined(ANDROID_NDK)123#if defined(ANDROID_NDK)
124 std::string filename = std::string ("/sdcard/") + sFileName;124 std::string filename = std::string ("/sdcard/") + sFileName;
125 ASSERT_TRUE (pH264File = fopen (filename.c_str(), "rb"));125 ASSERT_TRUE ((pH264File = fopen (filename.c_str(), "rb")) != NULL);
126#else126#else
127 ASSERT_TRUE (pH264File = fopen (sFileName, "rb"));127 ASSERT_TRUE ((pH264File = fopen (sFileName, "rb")) != NULL);
128#endif128#endif
129 fseek (pH264File, 0L, SEEK_END);129 fseek (pH264File, 0L, SEEK_END);
130 iFileSize = (int32_t) ftell (pH264File);130 iFileSize = (int32_t) ftell (pH264File);

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