Skip to content

Commit

Permalink
fix: Signed/Unsigned integer compare
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Dec 31, 2024
1 parent d7b2b94 commit 3dec4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ui/source/ui/hex_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3dec4cc

Please sign in to comment.