From 94fa3c8a63a1bc81073b7c4e052b434b47a0c935 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 15 Apr 2023 11:55:15 +0800 Subject: [PATCH] Remove some gcc compiler warnings --- src/graphics/material.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index f220a2955..c50b08dff 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -320,14 +320,14 @@ Material::Material(const XMLNode *node, bool deprecated) { m_sampler_path[3] = normal_map_tex; } - for (int i = 2; i < m_sampler_path.size(); i++) + for (unsigned i = 2; i < m_sampler_path.size(); i++) { const std::string key = std::string("tex-layer-") + StringUtils::toString(i); node->get(key, &m_sampler_path[i]); } // Convert to full path - for (int i = 1; i < m_sampler_path.size(); i++) + for (unsigned i = 1; i < m_sampler_path.size(); i++) { if (m_sampler_path[i].empty()) {