From 700fe315cf18836452c9157d004e4b869f7f2ae3 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 19 Nov 2020 20:11:25 -0500 Subject: [PATCH] LibGfx: Make some GIFLoader magic numbers a bit less magic No behavior change. --- Libraries/LibGfx/GIFLoader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/LibGfx/GIFLoader.cpp b/Libraries/LibGfx/GIFLoader.cpp index b337a3450c..20704f04e7 100644 --- a/Libraries/LibGfx/GIFLoader.cpp +++ b/Libraries/LibGfx/GIFLoader.cpp @@ -455,7 +455,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context) if (stream.handle_any_error()) return false; - if (sentinel == 0x21) { + if (sentinel == '!') { u8 extension_type = 0; stream >> extension_type; if (stream.handle_any_error()) @@ -528,7 +528,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context) continue; } - if (sentinel == 0x2c) { + if (sentinel == ',') { context.images.append(move(current_image)); auto& image = context.images.last(); @@ -595,7 +595,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context) continue; } - if (sentinel == 0x3b) { + if (sentinel == ';') { break; }