Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sltkr
· 3y ago · 0 comments
As far as I can tell it does return the earliest match. Why do you think it doesn't?
Comments
[–]
w0mbat
3y ago
I am possibly confused, getting moreso the more I read the code. As it is ignoring the sign of the result of compare I don't even see how it would work at all. The sign is what tells you which half to throw away as you search.