[ScriptError]: Use size_t (#1050)
This commit is contained in:
parent
042818846b
commit
148ec30f0d
@ -227,13 +227,13 @@ namespace Components::GSC
|
||||
|
||||
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)
|
||||
{
|
||||
len = 1024 - 1;
|
||||
}
|
||||
|
||||
for (auto i = 0; i < len; ++i)
|
||||
for (std::size_t i = 0; i < len; ++i)
|
||||
{
|
||||
if (rawLine[i] == '\t')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user