From a03c5699af133272daad5303956768893e6695bf Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 22 Nov 2014 22:44:19 -0800 Subject: Fix change-of-sign warning detected by ICC subscribeIndex is quint16, so it can't store a value of -1. Store 65535 instead. Note: in findgeneric, subIdx will NOT be -1. It will be 65535. Change-Id: I4b5ad6415609f409660a035de6f763ddb2da2f7e Reviewed-by: Simon Hausmann Reviewed-by: Thiago Macieira --- src/declarative/qml/qdeclarativecompiledbindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/declarative') diff --git a/src/declarative/qml/qdeclarativecompiledbindings.cpp b/src/declarative/qml/qdeclarativecompiledbindings.cpp index 50a7f604..67c1d023 100644 --- a/src/declarative/qml/qdeclarativecompiledbindings.cpp +++ b/src/declarative/qml/qdeclarativecompiledbindings.cpp @@ -2024,7 +2024,7 @@ bool QDeclarativeBindingCompilerPrivate::parseName(AST::Node *node, Result &type if (subscription(subscribeName, &type)) find.find.subscribeIndex = subscriptionIndex(subscribeName); else - find.find.subscribeIndex = -1; + find.find.subscribeIndex = ~0; bytecode << find; type.unknownType = true; @@ -2085,7 +2085,7 @@ bool QDeclarativeBindingCompilerPrivate::parseName(AST::Node *node, Result &type if (subscription(subscribeName, &type)) prop.find.subscribeIndex = subscriptionIndex(subscribeName); else - prop.find.subscribeIndex = -1; + prop.find.subscribeIndex = ~0; type.unknownType = true; type.metaObject = 0; -- cgit v1.2.3