From 75bcb487ee00cc147fc94f32f789dc37b160cbf8 Mon Sep 17 00:00:00 2001 From: Nik Date: Mon, 1 Sep 2025 22:22:43 +0200 Subject: [PATCH] patterns/ico: Fixed duplicate variable name --- patterns/ico.hexpat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patterns/ico.hexpat b/patterns/ico.hexpat index 041fdc2..91eaa29 100644 --- a/patterns/ico.hexpat +++ b/patterns/ico.hexpat @@ -28,7 +28,7 @@ struct ICONDIR { }; struct BMPData { - u8 data[sizeof(parent.data)] [[hidden, no_unique_address]]; + u8 data[sizeof(parent.raw_data)] [[hidden, no_unique_address]]; std::mem::Section section = std::mem::create_section("BMP Image " + std::string::to_string(addressof(this))); std::mem::set_section_size(section, sizeof(data) + 14); u8 headerData[14] @ 0x00 in section [[hidden]]; @@ -43,7 +43,7 @@ struct BMPData { }; struct ImageData { - std::mem::Bytes data [[no_unique_address]]; + std::mem::Bytes raw_data [[no_unique_address]]; be u64 png_magic [[hidden, no_unique_address]]; if (png_magic == 0x89504e470d0a1a0a) { PNG png_image @ $ [[inline, highlight_hidden]];