cpukit/.../flashdev.c: Correct comparisons of different signedness

The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
This commit is contained in:
Joel Sherrill
2025-12-04 18:46:23 -05:00
committed by Amar Takhar
parent ce1d611048
commit 426f938869
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -783,7 +783,7 @@ static int rtems_flashdev_ioctl_create_region(
rtems_flashdev_region *region_in
)
{
int i;
uint32_t i;
rtems_flashdev_region_table *table = flash->region_table;
/* Find unallocated region slot */
@@ -1260,7 +1260,7 @@ static uint32_t rtems_flashdev_find_unallocated_region(
)
{
int array_index = 0;
int bit_index = 0;
uint32_t bit_index = 0;
int shift;
while ( bit_index < region_table->max_regions) {
+1 -1
View File
@@ -268,7 +268,7 @@ typedef struct rtems_flashdev_region_table {
/**
* @brief The maximum regions that can be defined at once.
*/
int max_regions;
uint32_t max_regions;
/**
* @brief Pointer to array of rtems_flashdev_region of length