[poppler] qt4/tests

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Dec 8 09:04:39 PST 2012


 qt4/tests/check_lexer.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cb3a10417ae659fdb7b77132c569c93ec00bc95e
Author: Fabio D'Urso <fabiodurso at hotmail.it>
Date:   Sun Dec 2 01:41:05 2012 +0100

    Fixed check_lexer on 32-bit systems

diff --git a/qt4/tests/check_lexer.cpp b/qt4/tests/check_lexer.cpp
index 8611b8f..1ae849f 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);


More information about the poppler mailing list