summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qbytearray.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-21 14:03:21 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-22 09:51:15 +0200
commit631eed68d0ea5e1e8e5c2ad7d56b3dcbfbcb4aa0 (patch)
tree5f54dbcd548b781a029af3fda0baab0180c6cdc4 /src/corelib/text/qbytearray.cpp
parent1b0e6b909f7d508f5c2eb0247ee3d6e5d0d5325c (diff)
Fix some MSVC conversion warnings
Change-Id: Ib2c1fdb7b84f89201136438362ab5962126ec929 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/corelib/text/qbytearray.cpp')
-rw-r--r--src/corelib/text/qbytearray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp
index 1c40bba377..46902bdec8 100644
--- a/src/corelib/text/qbytearray.cpp
+++ b/src/corelib/text/qbytearray.cpp
@@ -647,7 +647,7 @@ QByteArray qUncompress(const uchar* data, qsizetype nbytes)
return invalidCompressedData();
forever {
- ulong alloc = len;
+ const auto alloc = len;
int res = ::uncompress((uchar*)d.data(), reinterpret_cast<uLongf*>(&len),
data+4, nbytes-4);