Fix sign-comparison issue

Signed-off-by: Andrés Sánchez Pascual <tito97_sp@hotmail.com>
This commit is contained in:
Andrés Sánchez Pascual 2022-10-28 16:14:37 +02:00 committed by Fabio Utzig
parent 900da13865
commit 246aca368e
1 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ int flash_area_read(const struct flash_area *fa, uint32_t off,
/* Reposition the file offset from the beginning of the flash area */
seekpos = lseek(dev->fd, (off_t)off, SEEK_SET);
if (seekpos != off)
if (seekpos != (off_t)off)
{
int errcode = errno;
@ -489,7 +489,7 @@ int flash_area_write(const struct flash_area *fa, uint32_t off,
/* Reposition the file offset from the beginning of the flash area */
seekpos = lseek(dev->fd, (off_t)off, SEEK_SET);
if (seekpos != off)
if (seekpos != (off_t)off)
{
int errcode = errno;