Fixed some compiler warnings that were being treated as errors

This commit is contained in:
Graham Pentheny
2025-08-21 21:22:44 -04:00
parent 182b9b7729
commit f9b39663c9
3 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class OffMeshConnectionTool : public SampleTool
public:
OffMeshConnectionTool() = default;
~OffMeshConnectionTool()
~OffMeshConnectionTool() override
{
if (sample)
{

View File

@@ -377,7 +377,7 @@ void TestCase::handleRender()
glColor4ub(0, 0, 0, 64);
}
int numStraight = test.straight.size() / 3;
int numStraight = static_cast<int>(test.straight.size()) / 3;
for (int i = 0; i < numStraight - 1; ++i)
{
glVertex3f(test.straight[i * 3 + 0], test.straight[i * 3 + 1] + 0.3f, test.straight[i * 3 + 2]);

View File

@@ -187,10 +187,10 @@ struct AppData
void UpdateUIScale()
{
ImGuiIO& io = ImGui::GetIO();
io.DisplaySize = ImVec2(width, height);
io.DisplaySize = ImVec2(static_cast<float>(width), static_cast<float>(height));
io.DisplayFramebufferScale = ImVec2(
static_cast<float>(drawableWidth) / width,
static_cast<float>(drawableHeight) / height);
static_cast<float>(drawableWidth) / static_cast<float>(width),
static_cast<float>(drawableHeight) / static_cast<float>(height));
}
};