- changed FString API to use ptrdiff_t instead of long for signed size arguments.

This commit is contained in:
Christoph Oelckers 2021-08-12 00:45:59 +02:00
commit c3772fe203
18 changed files with 102 additions and 102 deletions

View file

@ -435,7 +435,7 @@ void FStringTable::InsertString(int lumpnum, int langid, FName label, const FStr
{
const char *strlangid = (const char *)&langid;
TableElement te = { fileSystem.GetFileContainer(lumpnum), { string, string, string, string } };
long index;
ptrdiff_t index;
while ((index = te.strings[0].IndexOf("@[")) >= 0)
{
auto endindex = te.strings[0].IndexOf(']', index);