From 3dec4cc69874b63d860e65f1e89a787b1a6b9c8f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 31 Dec 2024 17:21:37 +0100 Subject: [PATCH] fix: Signed/Unsigned integer compare --- plugins/ui/source/ui/hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ui/source/ui/hex_editor.cpp b/plugins/ui/source/ui/hex_editor.cpp index 847fca567..9e6a01b31 100644 --- a/plugins/ui/source/ui/hex_editor.cpp +++ b/plugins/ui/source/ui/hex_editor.cpp @@ -504,7 +504,7 @@ namespace hex::ui { } const auto bytesPerCell = m_currDataVisualizer->getBytesPerCell(); - const auto columnCount = m_bytesPerRow / bytesPerCell; + const u64 columnCount = m_bytesPerRow / bytesPerCell; auto byteColumnCount = 2 + columnCount + getByteColumnSeparatorCount(columnCount) + 2 + 2; if (byteColumnCount >= IMGUI_TABLE_MAX_COLUMNS) {