mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
Kernel: Make File::truncate() take a u64
No point in taking a signed type here. We validate at the syscall layer and then pass around a u64 from then on.
This commit is contained in:
@@ -327,7 +327,7 @@ KResult TmpFSInode::remove_child(const StringView& name)
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
KResult TmpFSInode::truncate(off_t size)
|
||||
KResult TmpFSInode::truncate(u64 size)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
ASSERT(!is_directory());
|
||||
|
||||
Reference in New Issue
Block a user