From 798b6193abbc7de7626f37ee003f684523ec4c8c Mon Sep 17 00:00:00 2001 From: fgenesis Date: Sun, 22 Sep 2024 03:23:51 +0200 Subject: [PATCH] fix a warning --- BBGE/DebugFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/DebugFont.cpp b/BBGE/DebugFont.cpp index 5bb685e..e321a2c 100644 --- a/BBGE/DebugFont.cpp +++ b/BBGE/DebugFont.cpp @@ -89,7 +89,7 @@ void DebugFont::formatText() text = this->text; lines.clear(); std::string currentLine; - size_t lastSpace = size_t(-1); + size_t lastSpace = std::string::npos; float currentWidth = 0; maxW = 0; for (size_t i = 0; i < text.size(); i++)