mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 10:42:51 +00:00
AK: Use size_t for ByteBuffer sizes
This matches what we already do for string types.
This commit is contained in:
parent
1dfc66c7cc
commit
88b9fcb976
Notes:
sideshowbarker
2024-07-19 09:12:19 +09:00
Author: https://github.com/awesomekling
Commit: 88b9fcb976
14 changed files with 75 additions and 70 deletions
|
@ -923,8 +923,10 @@ bool Ext2FSInode::write_directory(const Vector<FS::DirectoryEntry>& entries)
|
|||
stream.fill_to_end(0);
|
||||
|
||||
ssize_t nwritten = write_bytes(0, directory_data.size(), directory_data.data(), nullptr);
|
||||
if (nwritten < 0)
|
||||
return false;
|
||||
set_metadata_dirty(true);
|
||||
return nwritten == directory_data.size();
|
||||
return static_cast<size_t>(nwritten) == directory_data.size();
|
||||
}
|
||||
|
||||
KResult Ext2FSInode::add_child(InodeIdentifier child_id, const StringView& name, mode_t mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue