1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

AK: Fully qualify some usages of AK features outside of the AK namespace

This commit is contained in:
Tim Schumacher 2022-11-27 16:40:42 +01:00 committed by Andreas Kling
parent 03fd9002da
commit a8c73998f1
3 changed files with 5 additions and 5 deletions

View file

@ -40,14 +40,14 @@ inline size_t malloc_good_size(size_t size) { return size; }
using std::nothrow;
inline void* kmalloc_array(Checked<size_t> a, Checked<size_t> b)
inline void* kmalloc_array(AK::Checked<size_t> a, AK::Checked<size_t> b)
{
auto size = a * b;
VERIFY(!size.has_overflow());
return kmalloc(size.value());
}
inline void* kmalloc_array(Checked<size_t> a, Checked<size_t> b, Checked<size_t> c)
inline void* kmalloc_array(AK::Checked<size_t> a, AK::Checked<size_t> b, AK::Checked<size_t> c)
{
auto size = a * b * c;
VERIFY(!size.has_overflow());