summaryrefslogtreecommitdiff
path: root/AK/ByteBuffer.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-03-07 14:28:21 +0000
committerAndreas Kling <kling@serenityos.org>2023-03-09 21:43:54 +0100
commit067d0689c5f7ff720fcfec9ff4d2898741948fed (patch)
tree5ebc5ab1a712a19cd13cd86b53a65f6c58e8a2fc /AK/ByteBuffer.h
parent7d6908d9a5da71479d0fde2f2175bde525e49776 (diff)
downloadserenity-067d0689c5f7ff720fcfec9ff4d2898741948fed.zip
AK: Replace C-style casts
Diffstat (limited to 'AK/ByteBuffer.h')
-rw-r--r--AK/ByteBuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/ByteBuffer.h b/AK/ByteBuffer.h
index 61ebf051a6..064613f095 100644
--- a/AK/ByteBuffer.h
+++ b/AK/ByteBuffer.h
@@ -296,7 +296,7 @@ private:
// This is most noticable in Lagom, where kmalloc_good_size is just a no-op.
new_capacity = max(new_capacity, (capacity() * 3) / 2);
new_capacity = kmalloc_good_size(new_capacity);
- auto* new_buffer = (u8*)kmalloc(new_capacity);
+ auto* new_buffer = static_cast<u8*>(kmalloc(new_capacity));
if (!new_buffer)
return Error::from_errno(ENOMEM);