Re: [PATCH] search_one_table()

From: Robert Love (rml@tech9.net)
Date: Tue Nov 13 2001 - 18:02:21 EST


On Tue, 2001-11-13 at 17:32, Per Persson wrote:
> - mid = (last - first) / 2 + first;
> + mid = (last + first) / 2

Ehh, maybe its my scientific computer side talking, but your change will
overflow. Adding two addresses can certainly return an address larger
than 0xffffffff, so you see formulas like the above.

        Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:37 EST