@@ -308,7 +308,7 @@ void MultipleShape::Render(bool InLoop) {
308
308
}
309
309
RenderLoopPostfix ();
310
310
if (Next) Next->Render (InLoop);
311
- };
311
+ }
312
312
313
313
// LoopShape
314
314
@@ -323,7 +323,7 @@ void LoopShape::Render(bool InLoop) {
323
323
Indenter::Unindent ();
324
324
PrintIndented (" }\n " );
325
325
if (Next) Next->Render (InLoop);
326
- };
326
+ }
327
327
328
328
// EmulatedShape
329
329
@@ -350,16 +350,16 @@ void EmulatedShape::Render(bool InLoop) {
350
350
Indenter::Unindent ();
351
351
PrintIndented (" }\n " );
352
352
if (Next) Next->Render (InLoop);
353
- };
353
+ }
354
354
355
355
// Relooper
356
356
357
357
Relooper::Relooper () : Root(NULL ), Emulate(false ), BlockIdCounter(1 ), ShapeIdCounter(0 ) { // block ID 0 is reserved for clearings
358
358
}
359
359
360
360
Relooper::~Relooper () {
361
- for (int i = 0 ; i < Blocks.size (); i++) delete Blocks[i];
362
- for (int i = 0 ; i < Shapes.size (); i++) delete Shapes[i];
361
+ for (unsigned i = 0 ; i < Blocks.size (); i++) delete Blocks[i];
362
+ for (unsigned i = 0 ; i < Shapes.size (); i++) delete Shapes[i];
363
363
}
364
364
365
365
void Relooper::AddBlock (Block *New) {
@@ -399,7 +399,7 @@ void Relooper::Calculate(Block *Entry) {
399
399
// RAII cleanup. Without splitting, we will be forced to introduce labelled loops to allow
400
400
// reaching the final block
401
401
void SplitDeadEnds () {
402
- int TotalCodeSize = 0 ;
402
+ unsigned TotalCodeSize = 0 ;
403
403
for (BlockSet::iterator iter = Live.begin (); iter != Live.end (); iter++) {
404
404
Block *Curr = *iter;
405
405
TotalCodeSize += strlen (Curr->Code );
@@ -451,7 +451,7 @@ void Relooper::Calculate(Block *Entry) {
451
451
Pre.FindLive (Entry);
452
452
453
453
// Add incoming branches from live blocks, ignoring dead code
454
- for (int i = 0 ; i < Blocks.size (); i++) {
454
+ for (unsigned i = 0 ; i < Blocks.size (); i++) {
455
455
Block *Curr = Blocks[i];
456
456
if (!contains (Pre.Live , Curr)) continue ;
457
457
for (BlockBranchMap::iterator iter = Curr->BranchesOut .begin (); iter != Curr->BranchesOut .end (); iter++) {
0 commit comments