projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e92d6e
)
Silence signed/unsigned comparison warning.
author
Erik Verbruggen
<erik.verbruggen@digia.com>
Thu, 18 Oct 2012 08:57:00 +0000
(10:57 +0200)
committer
Simon Hausmann
<simon.hausmann@digia.com>
Thu, 18 Oct 2012 09:02:33 +0000
(11:02 +0200)
Change-Id: Id23e48b370a73baabcc6875b51067f60dadec0c4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_runtime.cpp
patch
|
blob
|
history
diff --git
a/qmljs_runtime.cpp
b/qmljs_runtime.cpp
index
6cbc8f6
..
9e9d364
100644
(file)
--- a/
qmljs_runtime.cpp
+++ b/
qmljs_runtime.cpp
@@
-449,7
+449,7
@@
Value __qmljs_delete_subscript(Context *ctx, Value base, Value index)
else if (index.isDouble())
n = index.doubleValue();
if (n >= 0) {
- if (n < a->value.size()) {
+ if (n <
(int)
a->value.size()) {
a->value.assign(n, Value::undefinedValue());
return Value::fromBoolean(true);
}