summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qprivatelinearbuffer_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qprivatelinearbuffer_p.h')
-rw-r--r--src/bluetooth/qprivatelinearbuffer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qprivatelinearbuffer_p.h b/src/bluetooth/qprivatelinearbuffer_p.h
index 5413bd28..2eb38cd6 100644
--- a/src/bluetooth/qprivatelinearbuffer_p.h
+++ b/src/bluetooth/qprivatelinearbuffer_p.h
@@ -141,7 +141,7 @@ private:
size_t newCapacity = qMax(capacity, size_t(QPRIVATELINEARBUFFER_BUFFERSIZE));
while (newCapacity < required)
newCapacity *= 2;
- int moveOffset = (where == freeSpaceAtEnd) ? 0 : newCapacity - len;
+ const int moveOffset = (where == freeSpaceAtEnd) ? 0 : int(newCapacity) - len;
if (newCapacity > capacity) {
// allocate more space
char* newBuf = new char[newCapacity];