(Stray thought) Could also be phrased: if (ret2 + 1 == 0) without a cast.