diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2017-01-23 22:12:59 +0100 |
---|---|---|
committer | Jesus Fernandez <jesus.fernandez@qt.io> | 2017-01-24 15:10:21 +0000 |
commit | 6a3e728e9b60f0201b0319b4b8de52ac5e282091 (patch) | |
tree | b109e9cc384c861cdc7395f76b91b66375a1de00 | |
parent | 91e5c7e1da6d2a939b7a34cd9c166e76192bf53b (diff) | |
download | qtbase-6a3e728e9b60f0201b0319b4b8de52ac5e282091.tar.gz |
Fix possible loss of data warning
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
while compiling class template member function 'QVarLengthArray<T,Prealloc>::QVarLengthArray(std::initializer_list<T>)'
Change-Id: I36f5ef65ec1f511eac7f3ad1a4717d18f7dc9ce4
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r-- | src/corelib/tools/qvarlengtharray.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qvarlengtharray.h b/src/corelib/tools/qvarlengtharray.h index 1530299303..bb5ae78d2b 100644 --- a/src/corelib/tools/qvarlengtharray.h +++ b/src/corelib/tools/qvarlengtharray.h @@ -77,7 +77,7 @@ public: : a(Prealloc), s(0), ptr(reinterpret_cast<T *>(array)) { if (args.size()) - append(args.begin(), args.size()); + append(args.begin(), int(args.size())); } #endif |