summaryrefslogtreecommitdiff
path: root/src/declarative/qml/qdeclarativexmlhttprequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qdeclarativexmlhttprequest.cpp')
-rw-r--r--src/declarative/qml/qdeclarativexmlhttprequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativexmlhttprequest.cpp b/src/declarative/qml/qdeclarativexmlhttprequest.cpp
index 0009163036..e64088b754 100644
--- a/src/declarative/qml/qdeclarativexmlhttprequest.cpp
+++ b/src/declarative/qml/qdeclarativexmlhttprequest.cpp
@@ -820,7 +820,7 @@ v8::Handle<v8::Value> NamedNodeMap::indexed(uint32_t index, const v8::AccessorIn
if (!r || !r->list) return v8::Undefined();
QV8Engine *engine = V8ENGINE();
- if (index < r->list->count()) {
+ if ((int)index < r->list->count()) {
return Node::create(engine, r->list->at(index));
} else {
return v8::Undefined();
@@ -876,7 +876,7 @@ v8::Handle<v8::Value> NodeList::indexed(uint32_t index, const v8::AccessorInfo&
if (!r) return v8::Undefined();
QV8Engine *engine = V8ENGINE();
- if (index < r->d->children.count()) {
+ if ((int)index < r->d->children.count()) {
return Node::create(engine, r->d->children.at(index));
} else {
return v8::Undefined();