From bad230b67bc021878e34e6830f44bb2379a6cf09 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 22 Sep 2016 16:28:57 +0100 Subject: [PATCH] TARGET_MCU_NRF51822 - Avoid comparison between signed and unsigned integers. --- .../sdk/source/ble/peer_manager/peer_database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/peer_database.c b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/peer_database.c index a34fc78fb3..8a790c02dd 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/peer_database.c +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/ble/peer_manager/peer_database.c @@ -172,7 +172,7 @@ static pdb_buffer_record_t * write_buffer_record_find_unused(void) */ static void write_buffer_record_release(pdb_buffer_record_t * p_write_buffer_record) { - for (int i = 0; i < p_write_buffer_record->n_bufs; i++) + for (uint32_t i = 0; i < p_write_buffer_record->n_bufs; i++) { pm_buffer_release(&m_pdb.write_buffer, p_write_buffer_record->buffer_block_id + i); }