Chromium Code Reviews| Index: runtime/vm/block_scheduler.cc |
| =================================================================== |
| --- runtime/vm/block_scheduler.cc (revision 28370) |
| +++ runtime/vm/block_scheduler.cc (working copy) |
| @@ -108,7 +108,10 @@ |
| int Edge::LowestWeightFirst(const Edge* a, const Edge* b) { |
| - return (a->weight < b->weight) ? -1 : (a->weight > b->weight); |
| + if (a->weight < b->weight) { |
| + return -1; |
| + } |
| + return (a->weight > b->weight) ? 1 : 0; |
| } |