Re: [patch net-next 1/3] idr: Use unsigned long instead of int

From: Alexey Dobriyan
Date: Wed Aug 16 2017 - 17:44:22 EST


[CC trimmed]

On Tue, Aug 15, 2017 at 10:12:16PM -0400, Chris Mi wrote:
> IDR uses internally radix tree which uses unsigned long. It doesn't
> makes sense to have index as signed value.

It doesn't. But it makes sense to use "unsigned int" because it
generates smaller code on x86_64.