mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 15:08:12 +00:00
Kernel: Remove obsolete size_t casts
This commit is contained in:
parent
9b14a8605a
commit
bf779e182e
8 changed files with 11 additions and 11 deletions
|
@ -760,7 +760,7 @@ KResultOr<size_t> Plan9FSInode::read_bytes(off_t offset, size_t size, UserOrKern
|
|||
}
|
||||
|
||||
// Guard against the server returning more data than requested.
|
||||
size_t nread = min(data.length(), (size_t)size);
|
||||
size_t nread = min(data.length(), size);
|
||||
if (!buffer.write(data.characters_without_null_termination(), nread))
|
||||
return EFAULT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue