Commit 9b5fbad1 authored by Joe Perches's avatar Joe Perches Committed by Dmitry Torokhov
Browse files

Input: MT - avoid comma separated statements

parent d862a306
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -323,11 +323,14 @@ static int adjust_dual(int *begin, int step, int *end, int eq, int mu)
	p = begin + step;
	s = p == end ? f + 1 : *p;

	for (; p != end; p += step)
		if (*p < f)
			s = f, f = *p;
		else if (*p < s)
	for (; p != end; p += step) {
		if (*p < f) {
			s = f;
			f = *p;
		} else if (*p < s) {
			s = *p;
		}
	}

	c = (f + s + 1) / 2;
	if (c == 0 || (c > mu && (!eq || mu > 0)))