From: Roberto Raggi Date: Wed, 17 Aug 2011 12:27:37 +0000 (+0200) Subject: Fix parsing of numeric literals. X-Git-Tag: qt-v5.0.0-alpha1~1801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60c0e08b786e44838c8e08cf2170130d6d2d32cc;p=profile%2Fivi%2Fqtdeclarative.git Fix parsing of numeric literals. Store the value in a double. Change-Id: I17b90d2917a2710d434a92b5f6b297f755156c31 Reviewed-on: http://codereview.qt.nokia.com/3788 Reviewed-by: Roberto Raggi Reviewed-by: Qt Sanity Bot --- diff --git a/src/declarative/qml/parser/qdeclarativejslexer.cpp b/src/declarative/qml/parser/qdeclarativejslexer.cpp index c269542..b59d7cd 100644 --- a/src/declarative/qml/parser/qdeclarativejslexer.cpp +++ b/src/declarative/qml/parser/qdeclarativejslexer.cpp @@ -713,7 +713,7 @@ again: } } else if (QDeclarativeUtils::isDigit(ch)) { if (ch != QLatin1Char('0')) { - int integer = ch.unicode() - '0'; + double integer = ch.unicode() - '0'; QChar n = _char; const QChar *code = _codePtr;