libs/lmo: explicitly cast values to off_t for lseek()
This commit is contained in:
parent
50cf0212ab
commit
a9ae676c61
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ lmo_archive_t * lmo_open(const char *file)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( lseek(in, -sizeof(uint32_t), SEEK_END) == -1 )
|
if( lseek(in, (off_t)(-sizeof(uint32_t)), SEEK_END) == -1 )
|
||||||
{
|
{
|
||||||
error("Can not seek to eof", 1);
|
error("Can not seek to eof", 1);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
@ -86,7 +86,7 @@ lmo_archive_t * lmo_open(const char *file)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( lseek(in, idx_offset, SEEK_SET) == -1 )
|
if( lseek(in, (off_t)idx_offset, SEEK_SET) == -1 )
|
||||||
{
|
{
|
||||||
error("Can not seek to index offset", 1);
|
error("Can not seek to index offset", 1);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
Loading…
Reference in a new issue