mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +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:
parent
42d41fdf94
commit
7291370478
Notes:
sideshowbarker
2024-07-19 09:31:58 +09:00
Author: https://github.com/awesomekling
Commit: 7291370478
11 changed files with 12 additions and 12 deletions
|
@ -74,7 +74,7 @@ String InodeFile::absolute_path(const FileDescription& description) const
|
|||
return description.absolute_path();
|
||||
}
|
||||
|
||||
KResult InodeFile::truncate(off_t size)
|
||||
KResult InodeFile::truncate(u64 size)
|
||||
{
|
||||
auto truncate_result = m_inode->truncate(size);
|
||||
if (truncate_result.is_error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue