diff options
Diffstat (limited to 'Userland/Libraries/LibGfx/BitmapFont.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/BitmapFont.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/BitmapFont.cpp b/Userland/Libraries/LibGfx/BitmapFont.cpp index 3a4d3b416e..22cb56ff64 100644 --- a/Userland/Libraries/LibGfx/BitmapFont.cpp +++ b/Userland/Libraries/LibGfx/BitmapFont.cpp @@ -173,7 +173,7 @@ BitmapFont::~BitmapFont() RefPtr<BitmapFont> BitmapFont::load_from_memory(u8 const* data) { - auto const& header = *reinterpret_cast<const FontFileHeader*>(data); + auto const& header = *reinterpret_cast<FontFileHeader const*>(data); if (memcmp(header.magic, "!Fnt", 4)) { dbgln("header.magic != '!Fnt', instead it's '{:c}{:c}{:c}{:c}'", header.magic[0], header.magic[1], header.magic[2], header.magic[3]); return nullptr; |