lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 2015-11-20 14:12 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
> > (One possible break, not related to the __len metamethod, would be an
> > arithmetic overflow when computing the pivot <<(lo+up)/2>>; we should
> > do that computation with unsigneds.)
> 
>     lo+(up-lo)/2
> 
> is overflow-free.

Nice :-)  Thanks,

-- Roberto