diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-11-28 16:02:50 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-29 08:52:59 +0100 |
commit | 3ec60ca51bc231b6330c766121619f184aa44660 (patch) | |
tree | 787d8a55677235b58319e5199a51eeea3077ef29 /src/corelib/io/qiodevice_p.h | |
parent | 0f1d936998d2d87bdddbae7d43934b316e5b8fdb (diff) |
QtCore/IO: Fix some warnings on Windows (64bit).
- Warnings about conversion from size_t to int
- Unused variable.
Change-Id: I4a79fa6dc4b95551a64d282ae4307b0edff41201
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qiodevice_p.h')
-rw-r--r-- | src/corelib/io/qiodevice_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qiodevice_p.h b/src/corelib/io/qiodevice_p.h index 30e1869103..3ccad6254a 100644 --- a/src/corelib/io/qiodevice_p.h +++ b/src/corelib/io/qiodevice_p.h @@ -167,7 +167,7 @@ private: size_t newCapacity = qMax(capacity, size_t(QIODEVICE_BUFFERSIZE)); while (newCapacity < required) newCapacity *= 2; - int moveOffset = (where == freeSpaceAtEnd) ? 0 : newCapacity - len; + const size_t moveOffset = (where == freeSpaceAtEnd) ? 0 : newCapacity - size_t(len); if (newCapacity > capacity) { // allocate more space char* newBuf = new char[newCapacity]; |