mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +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
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ protected:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr static FlatPtr chunk_magic = sizeof(FlatPtr) == sizeof(u32) ? 0xdfdfdfdfu : 0xdfdfdfdfdfdfdfdfull;
|
constexpr static FlatPtr chunk_magic = explode_byte(0xdf);
|
||||||
struct ChunkHeader {
|
struct ChunkHeader {
|
||||||
FlatPtr magic;
|
FlatPtr magic;
|
||||||
FlatPtr next_chunk;
|
FlatPtr next_chunk;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue