From 0611bad6ef979e29a16233510db7daddaa2deab3 Mon Sep 17 00:00:00 2001 From: Darshan Dobariya Date: Tue, 13 Feb 2024 16:08:11 +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 0ee8906c69..40d8dcf8db 100644 --- a/nimble/host/store/config/src/ble_store_config.c +++ b/nimble/host/store/config/src/ble_store_config.c @@ -181,7 +181,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 9359f6d399..da7f844923 100644 --- a/nimble/host/store/ram/src/ble_store_ram.c +++ b/nimble/host/store/ram/src/ble_store_ram.c @@ -185,7 +185,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) {