[PATCH 17/27 5.10.y] minmax: don't use max() in situations that want a C constant expression