bsps/shared/dev: Address -Wsign-compare warnings

This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
This commit is contained in:
Joel Sherrill
2026-01-28 13:18:23 -06:00
committed by Gedare Bloom
parent 474c74efce
commit b906181b15
2 changed files with 3 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ static int flash_sim_erase_wrapper(
uintptr_t aligned_end = RTEMS_ALIGN_UP( offset + count, sector_size );
uint64_t sector_count = ( aligned_end - aligned_start ) / sector_size;
for ( int i = 0; i < sector_count; i++ ) {
for ( uint64_t i = 0; i < sector_count; i++ ) {
erase_sector( flash_driver, aligned_start + i * sector_size );
}

View File

@@ -31,8 +31,8 @@
static int read_config_byte(
uint8_t *config_raw,
size_t config_raw_len,
int datalen,
int desired_byte,
size_t datalen,
size_t desired_byte,
uint8_t *read_byte
)
{