mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Another signed/unsigned warning
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
548c062aa5
commit
2d405a1ebb
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue