| 407 LDObject* obj = objs[i]; |
407 LDObject* obj = objs[i]; |
| 408 |
408 |
| 409 const long idx = obj->lineNumber(), |
409 const long idx = obj->lineNumber(), |
| 410 target = idx + (up ? -1 : 1); |
410 target = idx + (up ? -1 : 1); |
| 411 |
411 |
| 412 if ((up && idx == 0) || (!up && idx == (long) (file->objects().size() - 1))) |
412 if ((up && idx == 0) || (not up && idx == (long) file->objects().size() - 1l)) |
| 413 { |
413 { |
| 414 // One of the objects hit the extrema. If this happens, this should be the first |
414 // One of the objects hit the extrema. If this happens, this should be the first |
| 415 // object to be iterated on. Thus, nothing has changed yet and it's safe to just |
415 // object to be iterated on. Thus, nothing has changed yet and it's safe to just |
| 416 // abort the entire operation. |
416 // abort the entire operation. |
| 417 assert (i == start); |
417 assert (i == start); |