From f762b55aa08b69d3d2342e5942cf455012825194 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sun, 16 Sep 2012 16:29:06 +0200 Subject: [PATCH] Fixed MSVC 10 compiler warnings --- test/testsymboldatabase.cpp | 2 +- test/testtimer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;