]> diplodocus.org Git - nmh/commit
Don't test -reverse's boolean on every message number.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 14:25:37 +0000 (15:25 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 14:25:37 +0000 (15:25 +0100)
commitcfb5a32c4e47d9061ced49e74f34c275bd9e4b54
tree9137e34cdd8e5f85327fd280dc4f0af8a3214bb3
parent256ad62eb53de61a900c56e3271327357b98e9c8
Don't test -reverse's boolean on every message number.
Test just once before the loop and define start, end, and increment.
Keep going whilst start is not end.  Happy for underflow or overflow in
calculating end because msgnum will make the same transition.  It can't
affect whether the loop runs at all since 0 is not a valid message
number.
uip/pick.c