Fix clang warning

This commit is contained in:
Magnus Norddahl 2017-02-12 03:25:17 +01:00
parent 5a85fabfa6
commit 9123c71bb6

View file

@ -71,7 +71,7 @@ namespace swrenderer
// b) skip most of the collected drawsegs which have no portal attached.
portaldrawsegs.Clear();
DrawSegmentList *drawseglist = Thread->DrawSegments.get();
for (auto index = 0; index != drawseglist->SegmentsCount(); index++)
for (unsigned int index = 0; index != drawseglist->SegmentsCount(); index++)
{
DrawSegment *seg = drawseglist->Segment(index);
@ -144,7 +144,7 @@ namespace swrenderer
}
DrawSegmentList *drawseglist = Thread->DrawSegments.get();
for (auto index = 0; index != drawseglist->SegmentsCount(); index++)
for (unsigned int index = 0; index != drawseglist->SegmentsCount(); index++)
{
DrawSegment *ds = drawseglist->Segment(index);