On Dec 17, 2007 9:55 AM, Eric Dumazet <dada1@cosmosbay.com> wrote:> - mid = (last - first) / 2 + first;> + while (low <= high) {> + mid = (low + high) / 2;I think you just introduced a bug. Think about what happens iflow=high=MAX_LONG/2 + 1.