Fixed MSVC 10 compiler warnings

This commit is contained in:
PKEuS 2012-09-16 16:29:06 +02:00
parent b06c078969
commit f762b55aa0
2 changed files with 2 additions and 2 deletions

View File

@ -660,7 +660,7 @@ private:
void hasSubClassConstructor() { void hasSubClassConstructor() {
GET_SYMBOL_DB("class Foo { class Sub; }; class Foo::Sub { Sub() {} };"); GET_SYMBOL_DB("class Foo { class Sub; }; class Foo::Sub { Sub() {} };");
ASSERT(db); ASSERT(db != 0);
if (db) { if (db) {
bool seen_something = false; bool seen_something = false;

View File

@ -35,7 +35,7 @@ private:
void result() const { void result() const {
TimerResultsData t1; TimerResultsData t1;
t1._clocks = ~0ULL; t1._clocks = ~(std::clock_t)0;
ASSERT(t1.seconds() > 100.0); ASSERT(t1.seconds() > 100.0);
t1._clocks = CLOCKS_PER_SEC * 5 / 2; t1._clocks = CLOCKS_PER_SEC * 5 / 2;