This makes sure the compared value actually is bool, not any other type that can be used as condition. This fixes warnings with MSVC.
Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -122,9 +122,9 @@ void DecoderInterfaceTest::DecoderBs (const char* sFileName) { · 121 unmodified lines | ||
| 122 | 122 | |
| 123 | 123 | #if defined(ANDROID_NDK) |
| 124 | 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 | 126 | #else |
| 127 | − ASSERT_TRUE (pH264File = fopen (sFileName, "rb")); | |
| 127 | + ASSERT_TRUE ((pH264File = fopen (sFileName, "rb")) != NULL); | |
| 128 | 128 | #endif |
| 129 | 129 | fseek (pH264File, 0L, SEEK_END); |
| 130 | 130 | iFileSize = (int32_t) ftell (pH264File); |