1
Fork 0
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:
Gunnar Beutner 2021-06-17 11:15:55 +02:00 committed by Andreas Kling
parent 9b14a8605a
commit bf779e182e
8 changed files with 11 additions and 11 deletions

View file

@ -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;