Use a smaller integer type when n is small enough.