mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-04 04:31:36 +00:00
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:
committed by
Gedare Bloom
parent
474c74efce
commit
b906181b15
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user