mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
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:
parent
3a8b8d8a0b
commit
301cab188c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue