Silence signed/unsigned comparison warning.
authorErik Verbruggen <erik.verbruggen@digia.com>
Thu, 18 Oct 2012 08:57:00 +0000 (10:57 +0200)
committerSimon 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

index 6cbc8f6..9e9d364 100644 (file)
@@ -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);
             }