From 2d405a1ebb431de16f94d19b9a7db86e4be3e788 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 26 Aug 2017 14:53:59 -0700 Subject: Another signed/unsigned warning Signed-off-by: Dirk Hohndel --- core/qt-ble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3-70-g09d2