summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2012-10-19 00:00:53 +0200
committerAlbert Astals Cid <aacid@kde.org>2012-10-19 00:00:53 +0200
commit5312984b40355b067001704e9c688ea0a72b1159 (patch)
treec078c2476846b8827da763d58c662e4d7ab23fb2
parent528b64bb077ed37c0d8fc7ae2ef3dc2c0dbb26ca (diff)
Define the numbers a bit better so gcc in i386 understands them better
-rw-r--r--qt4/tests/check_lexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt4/tests/check_lexer.cpp b/qt4/tests/check_lexer.cpp
index 904be14a..8611b8fe 100644
--- a/qt4/tests/check_lexer.cpp
+++ b/qt4/tests/check_lexer.cpp
@@ -47,7 +47,7 @@ void TestLexer::testNumbers()
lexer->getObj(&obj);
QCOMPARE(obj.getType(), objUint);
- QCOMPARE(obj.getUint(), (unsigned int)2147483648);
+ QCOMPARE(obj.getUint(), 2147483648u);
obj.free();
lexer->getObj(&obj);
@@ -57,7 +57,7 @@ void TestLexer::testNumbers()
lexer->getObj(&obj);
QCOMPARE(obj.getType(), objReal);
- QCOMPARE(obj.getReal(), (double)4294967297);
+ QCOMPARE(obj.getReal(), 4294967297.);
obj.free();
lexer->getObj(&obj);