This may as well be an <code> else if </code> follow-on to the preceding <code> if </code> and save the code path through the previous from having to test maxsize again.