diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-08-26 14:53:59 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-08-26 14:53:59 -0700 |
commit | 2d405a1ebb431de16f94d19b9a7db86e4be3e788 (patch) | |
tree | 53c805fca04bdd0a2206e0aaa366ed4c75dd6a1e /core | |
parent | 548c062aa507dc9b9c3fbf6e0ae176eb126dfb33 (diff) | |
download | subsurface-2d405a1ebb431de16f94d19b9a7db86e4be3e788.tar.gz |
Another signed/unsigned warning
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/qt-ble.cpp | 2 |
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()); |