Fix GitHub inline warnings (#5681)

This commit is contained in:
Tyler Veness
2023-09-23 19:57:18 -07:00
committed by GitHub
parent e8d4a20331
commit d0305951ad
2 changed files with 3 additions and 2 deletions

View File

@@ -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 |

View File

@@ -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()));
}
/**