diff options
-rw-r--r-- | qt4/tests/check_lexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt4/tests/check_lexer.cpp b/qt4/tests/check_lexer.cpp index 8611b8fe..1ae849f2 100644 --- a/qt4/tests/check_lexer.cpp +++ b/qt4/tests/check_lexer.cpp @@ -52,7 +52,7 @@ void TestLexer::testNumbers() lexer->getObj(&obj); QCOMPARE(obj.getType(), objInt); - QCOMPARE(obj.getInt(), (int)-2147483648); + QCOMPARE(obj.getInt(), -2147483647-1); obj.free(); lexer->getObj(&obj); @@ -62,7 +62,7 @@ void TestLexer::testNumbers() lexer->getObj(&obj); QCOMPARE(obj.getType(), objReal); - QCOMPARE(obj.getReal(), (double)-2147483649); + QCOMPARE(obj.getReal(), -2147483649.); obj.free(); lexer->getObj(&obj); |