From c9ec20dabea867e4a131be1606a6476fbd2a30f3 Mon Sep 17 00:00:00 2001 From: Darshan Dobariya Date: Tue, 13 Feb 2024 15:36:10 +0530 Subject: [PATCH] fix(nimble): Change 'move_count' to uint8_t type --- nimble/host/store/config/src/ble_store_config.c | 2 +- nimble/host/store/ram/src/ble_store_ram.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/host/store/config/src/ble_store_config.c b/nimble/host/store/config/src/ble_store_config.c index 8714bae90..00ad791b8 100644 --- a/nimble/host/store/config/src/ble_store_config.c +++ b/nimble/host/store/config/src/ble_store_config.c @@ -196,7 +196,7 @@ ble_store_config_delete_obj(void *values, int value_size, int idx, { uint8_t *dst; uint8_t *src; - int move_count; + uint8_t move_count; (*num_values)--; if (idx < *num_values) { diff --git a/nimble/host/store/ram/src/ble_store_ram.c b/nimble/host/store/ram/src/ble_store_ram.c index a2eb34fda..d587b8ac8 100644 --- a/nimble/host/store/ram/src/ble_store_ram.c +++ b/nimble/host/store/ram/src/ble_store_ram.c @@ -191,7 +191,7 @@ ble_store_ram_delete_obj(void *values, int value_size, int idx, { uint8_t *dst; uint8_t *src; - int move_count; + uint8_t move_count; (*num_values)--; if (idx < *num_values) {