mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-09 02:15:38 +00:00
Fixed some compiler warnings that were being treated as errors
This commit is contained in:
@@ -31,7 +31,7 @@ class OffMeshConnectionTool : public SampleTool
|
||||
|
||||
public:
|
||||
OffMeshConnectionTool() = default;
|
||||
~OffMeshConnectionTool()
|
||||
~OffMeshConnectionTool() override
|
||||
{
|
||||
if (sample)
|
||||
{
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user