mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 10:18:51 +00:00
Kernel: Remove obsolete size_t casts
This commit is contained in:
parent
9b14a8605a
commit
bf779e182e
Notes:
sideshowbarker
2024-07-18 12:07:05 +09:00
Author: https://github.com/gunnarbeutner
Commit: bf779e182e
Pull-request: https://github.com/SerenityOS/serenity/pull/8108
8 changed files with 11 additions and 11 deletions
|
@ -838,7 +838,7 @@ KResultOr<size_t> Ext2FSInode::read_bytes(off_t offset, size_t count, UserOrKern
|
|||
if (is_symlink() && size() < max_inline_symlink_length) {
|
||||
VERIFY(offset == 0);
|
||||
size_t nread = min((off_t)size() - offset, static_cast<off_t>(count));
|
||||
if (!buffer.write(((const u8*)m_raw_inode.i_block) + offset, (size_t)nread))
|
||||
if (!buffer.write(((const u8*)m_raw_inode.i_block) + offset, nread))
|
||||
return EFAULT;
|
||||
return nread;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue