diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-07 14:28:21 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-09 21:43:54 +0100 |
commit | 067d0689c5f7ff720fcfec9ff4d2898741948fed (patch) | |
tree | 5ebc5ab1a712a19cd13cd86b53a65f6c58e8a2fc /AK/ByteBuffer.h | |
parent | 7d6908d9a5da71479d0fde2f2175bde525e49776 (diff) | |
download | serenity-067d0689c5f7ff720fcfec9ff4d2898741948fed.zip |
AK: Replace C-style casts
Diffstat (limited to 'AK/ByteBuffer.h')
-rw-r--r-- | AK/ByteBuffer.h | 2 |
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); |