mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 17:28:39 +08:00
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:
committed by
Amar Takhar
parent
ce1d611048
commit
426f938869
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user