diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-20 17:25:18 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-20 17:25:18 -0400 |
commit | 27c49fe3ad8d1314c5aee5eee34668a494e31aa8 (patch) | |
tree | 0b0ed3a27f7c750873854c4ac730a59387c351e5 /core/qtserialbluetooth.cpp | |
parent | 12dac214aa96eb755f975f3eae464e4abd80ad76 (diff) | |
download | subsurface-27c49fe3ad8d1314c5aee5eee34668a494e31aa8.tar.gz |
Silence random warnings
None of these seem to point to actual issues, so let's quiet them.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qtserialbluetooth.cpp')
-rw-r--r-- | core/qtserialbluetooth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 8e5fac499..a6baae9f7 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -181,14 +181,14 @@ static dc_status_t ble_serial_write(dc_custom_io_t *io, const void* data, size_t while (size) { size_t len = sizeof(buffer.out) - transferred; - if (len > io->packet_size) + if ((int)len > io->packet_size) len = io->packet_size; if (len > size) len = size; memcpy(buffer.out + buffer.out_bytes, data, len); buffer.out_bytes += len; - if (buffer.out_bytes <= io->packet_size || buffer.out_bytes == size) { + if ((int)buffer.out_bytes <= io->packet_size || buffer.out_bytes == size) { rc = ble_serial_flush_write(); if (rc != DC_STATUS_SUCCESS) break; |