ref: 93cb6179328c59c2b673c3c7c15d3391e7f4e3d6
parent: 99925984b3abf7e6352e68488339aec00c382caf
author: Martin Storsjö <[email protected]>
date: Fri Jan 16 06:30:32 EST 2015
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.
--- a/test/decoder/DecUT_DecExt.cpp
+++ b/test/decoder/DecUT_DecExt.cpp
@@ -122,9 +122,9 @@
#if defined(ANDROID_NDK)
std::string filename = std::string ("/sdcard/") + sFileName;
- ASSERT_TRUE (pH264File = fopen (filename.c_str(), "rb"));
+ ASSERT_TRUE ((pH264File = fopen (filename.c_str(), "rb")) != NULL);
#else
- ASSERT_TRUE (pH264File = fopen (sFileName, "rb"));
+ ASSERT_TRUE ((pH264File = fopen (sFileName, "rb")) != NULL);
#endif
fseek (pH264File, 0L, SEEK_END);
iFileSize = (int32_t) ftell (pH264File);