From d35e1afa1f09299be785a4aadccdfeb8d1427c1e Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sun, 29 Jun 2025 21:32:10 -0400 Subject: [PATCH] Fixed signed/unsigned comparison warning on linux --- RecastDemo/Source/MeshLoaderObj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecastDemo/Source/MeshLoaderObj.cpp b/RecastDemo/Source/MeshLoaderObj.cpp index 2403ca32..8efc3519 100644 --- a/RecastDemo/Source/MeshLoaderObj.cpp +++ b/RecastDemo/Source/MeshLoaderObj.cpp @@ -198,7 +198,7 @@ void MeshLoaderObj::load(char* buf, size_t bufLen) // Calculate normals. normals.resize(getTriCount() * 3); - for (int i = 0; i < tris.size(); i += 3) + for (int i = 0; i < static_cast(tris.size()); i += 3) { const float* vertex0 = &verts[tris[i + 0] * 3]; const float* vertex1 = &verts[tris[i + 1] * 3];