mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 12:32:20 +02:00
Kernel: Remove obsolete size_t casts
This commit is contained in:
committed by
Andreas Kling
parent
9b14a8605a
commit
bf779e182e
Notes:
sideshowbarker
2024-07-18 12:07:05 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/bf779e182ec Pull-request: https://github.com/SerenityOS/serenity/pull/8108
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user