diff --git a/test/testsymboldatabase.cpp b/test/testsymboldatabase.cpp index 5f03a9b1a..294cd4b34 100644 --- a/test/testsymboldatabase.cpp +++ b/test/testsymboldatabase.cpp @@ -660,7 +660,7 @@ private: void hasSubClassConstructor() { GET_SYMBOL_DB("class Foo { class Sub; }; class Foo::Sub { Sub() {} };"); - ASSERT(db); + ASSERT(db != 0); if (db) { bool seen_something = false; diff --git a/test/testtimer.cpp b/test/testtimer.cpp index e2e1063ff..3e2f526a2 100644 --- a/test/testtimer.cpp +++ b/test/testtimer.cpp @@ -35,7 +35,7 @@ private: void result() const { TimerResultsData t1; - t1._clocks = ~0ULL; + t1._clocks = ~(std::clock_t)0; ASSERT(t1.seconds() > 100.0); t1._clocks = CLOCKS_PER_SEC * 5 / 2;