[PATCH v2 03/12 6.6.y] minmax: don't use max() in situations that want a C constant expression