[ScriptError]: Use size_t (#1050)

This commit is contained in:
Edo 2023-05-17 14:07:41 +01:00 committed by GitHub
parent 042818846b
commit 148ec30f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,13 +227,13 @@ namespace Components::GSC
void ScriptError::Scr_CopyFormattedLine(char* line, const char* rawLine) void ScriptError::Scr_CopyFormattedLine(char* line, const char* rawLine)
{ {
auto len = static_cast<int>(std::strlen(rawLine)); auto len = std::strlen(rawLine);
if (len >= 1024) if (len >= 1024)
{ {
len = 1024 - 1; len = 1024 - 1;
} }
for (auto i = 0; i < len; ++i) for (std::size_t i = 0; i < len; ++i)
{ {
if (rawLine[i] == '\t') if (rawLine[i] == '\t')
{ {