Make sure MIN and MAX will never act strange

This should be a no-brainer.
You are right, but probably not worth the trouble until the compiler complains. If I hadn't have the patch laying around I wouldn't have submitted it.