From 48066ce8e5dd6c7ea4eeae8a78acae0b4d41003b Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sun, 29 Jun 2025 21:36:04 -0400 Subject: [PATCH] Fixed signed/unsigned comparison warning on linux --- RecastDemo/Source/SampleInterfaces.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/RecastDemo/Source/SampleInterfaces.cpp b/RecastDemo/Source/SampleInterfaces.cpp index 91b25ac8..ad34aa28 100644 --- a/RecastDemo/Source/SampleInterfaces.cpp +++ b/RecastDemo/Source/SampleInterfaces.cpp @@ -4,9 +4,8 @@ #include "Recast.h" #include "SDL_opengl.h" -#include -#include -#include +#include +#include #ifdef WIN32 # define snprintf _snprintf @@ -80,7 +79,7 @@ void BuildContext::dumpLog(const char* format, ...) // Print messages const int TAB_STOPS[4] = {28, 36, 44, 52}; - for (int i = 0; i < logMessages.size(); ++i) + for (int i = 0; i < static_cast(logMessages.size()); ++i) { std::string& message = logMessages[i]; const char* msg = message.c_str() + 1;