aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4sequenceobject.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4sequenceobject.cpp b/src/qml/jsruntime/qv4sequenceobject.cpp
index 147163e653..55bfd750e9 100644
--- a/src/qml/jsruntime/qv4sequenceobject.cpp
+++ b/src/qml/jsruntime/qv4sequenceobject.cpp
@@ -220,7 +220,7 @@ public:
}
loadReference();
}
- if (index < size()) {
+ if (index < quint32(size())) {
if (hasProperty)
*hasProperty = true;
return engine()->fromVariant(at(index));
@@ -253,7 +253,7 @@ public:
loadReference();
}
- qsizetype count = size();
+ quint32 count = quint32(size());
const QMetaType valueMetaType = meta(d())->valueMetaType();
const QVariant element = engine()->toVariant(value, valueMetaType, false);
@@ -286,7 +286,7 @@ public:
return QV4::Attr_Invalid;
loadReference();
}
- return (index < size()) ? QV4::Attr_Data : QV4::Attr_Invalid;
+ return (index < quint32(size())) ? QV4::Attr_Data : QV4::Attr_Invalid;
}
struct OwnPropertyKeyIterator : ObjectOwnPropertyKeyIterator
@@ -302,7 +302,7 @@ public:
s->loadReference();
}
- if (arrayIndex < s->size()) {
+ if (arrayIndex < quint32(s->size())) {
uint index = arrayIndex;
++arrayIndex;
if (attrs)
@@ -335,7 +335,7 @@ public:
loadReference();
}
- if (index >= size())
+ if (index >= quint32(size()))
return false;
/* according to ECMA262r3 it should be Undefined, */