I interpret the former test
if (!(end <= ostart || start-1 >= oend)) {
as
if (not(end is bad || start is good)) { merge }
ORing the bad condition with the good doesn't produce the desired result.
it is not necessary to test "end" due to the conditions tested in the assert.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1162434 13f79535-47bb-0310-9956-
ffa450edef68
continue;
}
in_merge = 0;
+
+ AP_DEBUG_ASSERT((start <= end) && (ostart <= oend));
- if (!(end <= ostart || start-1 >= oend)) {
+ if (start-1 < oend) {
if (start < ostart) {
ostart = start;
reversals++;