aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/kat_bigint.cpp1
-rw-r--r--src/tests/nist_x509.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/kat_bigint.cpp b/src/tests/kat_bigint.cpp
index fe63f8b85..b71e0af2d 100644
--- a/src/tests/kat_bigint.cpp
+++ b/src/tests/kat_bigint.cpp
@@ -126,6 +126,7 @@ size_t test_make_prime()
std::cout << "Missing " << PRIMES[j] << "\n";
}
*/
+ return 0;
}
// c==expected, d==a op b, e==a op= b
diff --git a/src/tests/nist_x509.cpp b/src/tests/nist_x509.cpp
index 4f75c9f88..ce2a587f7 100644
--- a/src/tests/nist_x509.cpp
+++ b/src/tests/nist_x509.cpp
@@ -193,7 +193,7 @@ std::vector<std::string> dir_listing(const std::string& dir_name)
{
struct dirent* dir_ent = readdir(dir);
- if(dir_ent == 0)
+ if(!dir_ent)
break;
const std::string entry = dir_ent->d_name;
if(entry == "." || entry == "..")