AK: Use explode_byte in BumpAllocator.h

When compiling this code with Clang, both branches of the ternary
operator get evaluated at compile-time, triggering a warning about a
narrowing implicit conversion. We can use `explode_byte` instead.
This commit is contained in:
Daniel Bertalan 2021-08-04 13:34:45 +02:00 committed by Andreas Kling
parent 3a8b8d8a0b
commit 301cab188c

View file

@ -125,7 +125,7 @@ protected:
return true;
}
constexpr static FlatPtr chunk_magic = sizeof(FlatPtr) == sizeof(u32) ? 0xdfdfdfdfu : 0xdfdfdfdfdfdfdfdfull;
constexpr static FlatPtr chunk_magic = explode_byte(0xdf);
struct ChunkHeader {
FlatPtr magic;
FlatPtr next_chunk;