Skip to content

Commit

Permalink
Fix GitHub inline warnings (wpilibsuite#5681)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Sep 24, 2023
1 parent e8d4a20 commit d030595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion outlineviewer/src/main/native/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ static void DisplayGui() {
ImGui::SetNextWindowPos(ImVec2(0, 0));
int width, height;
glfwGetWindowSize(gui::GetSystemWindow(), &width, &height);
ImGui::SetNextWindowSize(ImVec2(width, height));
ImGui::SetNextWindowSize(
ImVec2(static_cast<float>(width), static_cast<float>(height)));

ImGui::Begin("Entries", nullptr,
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_MenuBar |
Expand Down
2 changes: 1 addition & 1 deletion wpigui/src/main/native/include/wpigui.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ bool AddIcon(const unsigned char* data, int len);

inline bool AddIcon(std::string_view data) {
return AddIcon(reinterpret_cast<const unsigned char*>(data.data()),
data.size());
static_cast<int>(data.size()));
}

/**
Expand Down

0 comments on commit d030595

Please sign in to comment.