From 70be4dd8a974abcda08cf050e5cec71a58306eec Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 28 Nov 2013 21:38:42 -0800 Subject: Fix change-of-sign warning in the new QML compiler The m_line and m_column members are of type quint16, so -1 is not valid. BTW, aren't 65535 possible lines too few? qqmlboundsignal.cpp(92): error #68: integer conversion resulted in a change of sign Change-Id: I2f73c276c5fc9b6988b5fa4274f7fa3f6bb85c4b Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlboundsignal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmlboundsignal.cpp') diff --git a/src/qml/qml/qqmlboundsignal.cpp b/src/qml/qml/qqmlboundsignal.cpp index 11dc873dd4..68160edf5e 100644 --- a/src/qml/qml/qqmlboundsignal.cpp +++ b/src/qml/qml/qqmlboundsignal.cpp @@ -89,8 +89,8 @@ QQmlBoundSignalExpression::QQmlBoundSignalExpression(QObject *target, int index, QQmlBoundSignalExpression::QQmlBoundSignalExpression(QObject *target, int index, QQmlContextData *ctxt, QObject *scope, const QV4::ValueRef &function) : QQmlJavaScriptExpression(&QQmlBoundSignalExpression_jsvtable), m_v8function(function), - m_line(-1), - m_column(-1), + m_line(USHRT_MAX), + m_column(USHRT_MAX), m_target(target), m_index(index), m_expressionFunctionValid(true), -- cgit v1.2.3