Another signed/unsigned warning

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-08-26 14:53:59 -07:00
parent 548c062aa5
commit 2d405a1ebb

View file

@ -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());