summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r--core/qt-ble.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp
index cb471d119..9867528c8 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -195,7 +195,7 @@ dc_status_t BLEObject::read(void *data, size_t size, size_t *actual)
if (IS_SHEARWATER(device))
packet.remove(0,2);
- if (packet.size() > size)
+ if ((size_t)packet.size() > size)
return DC_STATUS_NOMEMORY;
memcpy((char *)data, packet.data(), packet.size());