- fixed Clang warnings

This commit is contained in:
Christoph Oelckers 2022-08-30 23:15:12 +02:00
parent 4a486f5a10
commit 81c7e7671f
2 changed files with 2 additions and 1 deletions

View file

@ -302,6 +302,7 @@ const char *GetSampleTypeName(SampleType type)
{ {
case SampleType_UInt8: return "Unsigned 8-bit"; case SampleType_UInt8: return "Unsigned 8-bit";
case SampleType_Int16: return "Signed 16-bit"; case SampleType_Int16: return "Signed 16-bit";
default: break;
} }
return "(invalid sample type)"; return "(invalid sample type)";
} }

View file

@ -482,7 +482,7 @@ static void GroupData(TArray<loopcollect>& collect, TArray<sectionbuildsector>&
builder.sections.Last().loops.Push(std::move(loop)); builder.sections.Last().loops.Push(std::move(loop));
for (auto c: outside[a]) for (auto c: outside[a])
{ {
if (inside[c] == a) if (inside[c] == (int)a)
{ {
auto& iloop = sectloops[c]; auto& iloop = sectloops[c];
builder.sections.Last().wallcount += iloop.Size() - 1; builder.sections.Last().wallcount += iloop.Size() - 1;