Hacker News new | ask | show | jobs
by AndreyKarpov 4289 days ago
First must selected. See description.

Let's simplify the code to make the error more obvious:

         if (a & Min_Max) { Min[0] Min[1] }
    else if (a & Max_Min) { Max[0] Min[1] }
    else if (a & Max_Max) { Max[0] Max[1] }
    else if (a & Min_Max) { Min[0] Max[1] }
It should be evident now that every line except the first one contains the correlation between names of constants and names of arrays. So, in the first expression the 'sC0Min1Min' should have been used instead.