diff options
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]; |