Skip to content

Commit

Permalink
fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Sep 6, 2024
1 parent 0be7680 commit 9afb124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rendering/source/common/ui/UIVisitors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ namespace l::ui {
size.x *= layoutArea.mScale;
size.y *= layoutArea.mScale;
ImVec2 startPos = ImVec2(p1.x, p1.y + 0.5f * size.y);
for (size_t i = 0; i < nodeValueCount - 1; i++) {
for (int32_t i = 0; i < nodeValueCount - 1; i++) {
float xpart1 = i / static_cast<float>(nodeValueCount);
float xpart2 = (i+1) / static_cast<float>(nodeValueCount);
ImVec2 graphP1 = ImVec2(startPos.x + size.x * xpart1, startPos.y + 0.5f * nodeValues[i] * size.y);
Expand Down

0 comments on commit 9afb124

Please sign in to comment.