Skip to content

Commit 246aca3

Browse files
tito97sputzig
authored andcommitted
Fix sign-comparison issue
Signed-off-by: Andrés Sánchez Pascual <[email protected]>
1 parent 900da13 commit 246aca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boot/nuttx/src/flash_map_backend/flash_map_backend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ int flash_area_read(const struct flash_area *fa, uint32_t off,
421421
/* Reposition the file offset from the beginning of the flash area */
422422

423423
seekpos = lseek(dev->fd, (off_t)off, SEEK_SET);
424-
if (seekpos != off)
424+
if (seekpos != (off_t)off)
425425
{
426426
int errcode = errno;
427427

@@ -489,7 +489,7 @@ int flash_area_write(const struct flash_area *fa, uint32_t off,
489489
/* Reposition the file offset from the beginning of the flash area */
490490

491491
seekpos = lseek(dev->fd, (off_t)off, SEEK_SET);
492-
if (seekpos != off)
492+
if (seekpos != (off_t)off)
493493
{
494494
int errcode = errno;
495495

0 commit comments

Comments
 (0)