mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +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
|
@ -101,11 +101,11 @@ public:
|
|||
if (copied_or_error.is_error())
|
||||
return copied_or_error.error();
|
||||
auto copied = copied_or_error.value();
|
||||
VERIFY((size_t)copied <= to_copy);
|
||||
if (!write(buffer, nwritten, (size_t)copied))
|
||||
VERIFY(copied <= to_copy);
|
||||
if (!write(buffer, nwritten, copied))
|
||||
return EFAULT;
|
||||
nwritten += (size_t)copied;
|
||||
if ((size_t)copied < to_copy)
|
||||
nwritten += copied;
|
||||
if (copied < to_copy)
|
||||
break;
|
||||
}
|
||||
return nwritten;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue