mufs: cast offsets to long for comparison in mufs_seek()
This commit is contained in:
parent
e20e9e13e0
commit
ae0e8a37d3
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ long mufs_seek(struct mufs_file *file, long offset, int whence)
|
|||
default: return -1;
|
||||
}
|
||||
|
||||
if (offset > file->tree->file_size || offset >= UINT32_MAX)
|
||||
if (offset > (long)file->tree->file_size || offset >= (long)UINT32_MAX)
|
||||
return -1;
|
||||
|
||||
file->va = offset;
|
||||
|
|
Loading…
Add table
Reference in a new issue