Pre-increment is more efficient and also checking for == 5 makes more sense
-- "when we have got 5 bytes, stop".

On 7 August 2013 16:14, Nicolas <notifications@github.com> wrote:

> In idDHTLib.cpp:
>
> >  						cnt = 7;    // restart at MSB
> > -						if(idx++ == 4) {      // go to next byte, if whe have got 5 bytes stop.
> > +						if(++idx == 5) { // go to next byte; when we have got 5 bytes, stop.
>
> why this change, is equivalent
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/niesteszeck/idDHTLib/pull/6/files#r5634048>
> .
>