correct INT_MAX/MIN cases