summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydataops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qarraydataops.h')
-rw-r--r--src/corelib/tools/qarraydataops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h
index 6b110c5143..0d2be5d51c 100644
--- a/src/corelib/tools/qarraydataops.h
+++ b/src/corelib/tools/qarraydataops.h
@@ -158,7 +158,7 @@ struct QPodArrayOps
::memmove(static_cast<void *>(where + n), static_cast<void *>(where),
(static_cast<const T*>(this->end()) - where) * sizeof(T));
- this->size += n; // PODs can't throw on copy
+ this->size += int(n); // PODs can't throw on copy
while (n--)
*where++ = t;
}
@@ -655,7 +655,7 @@ struct QMovableArrayOps
copier.copy(n, t);
displace.commit();
- this->size += n;
+ this->size += int(n);
}
// use moving insert