From 384aa6e6a939530ae85c55a15789110fdf897ab3 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 16 Dec 2024 22:17:58 +0100 Subject: [PATCH] fix: Narrow to wide type compare in loop in timestamp visualizer --- .../visualizers/source/content/pl_visualizers/timestamp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/visualizers/source/content/pl_visualizers/timestamp.cpp b/plugins/visualizers/source/content/pl_visualizers/timestamp.cpp index a4b009712..a9fd1952d 100644 --- a/plugins/visualizers/source/content/pl_visualizers/timestamp.cpp +++ b/plugins/visualizers/source/content/pl_visualizers/timestamp.cpp @@ -47,11 +47,11 @@ namespace hex::plugin::visualizers { ImGui::TableNextRow(); // Skip days before the first day of the month - for (u8 i = 0; i < firstWeekDay.c_encoding() - 1; ++i) + for (u32 i = 0; i < firstWeekDay.c_encoding() - 1; ++i) ImGui::TableNextColumn(); // Draw days - for (u8 i = 1; i <= u32(lastMonthDay.day()); ++i) { + for (u32 i = 1; i <= u32(lastMonthDay.day()); ++i) { ImGui::TableNextColumn(); ImGuiExt::TextFormatted("{:02}", i);