summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qprivatelinearbuffer_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-10-10 10:21:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-10 11:23:11 +0200
commitd5c1f2564d1623d67a79d7bc990043bc1d55cf76 (patch)
tree9270921c73353bb9943b3b00f8eddc228af449bc /src/bluetooth/qprivatelinearbuffer_p.h
parent527cb367ba745a7f675ca7ef314cd3d28934c5b9 (diff)
Fix MSVC64-warning about truncation from size_t to int.
Change-Id: I592a6bf4396ff2fc587527fe4faf1093d9ea4f57 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
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];