if revision middle has the bug startrevision=middle+1 finalrevision=finalrevision-1
else (middle don't has the bug) startrevision=startrevision+1 finalrevision=middle-1
should have been
if revision middle has the bug startrevision=startrevision+1 finalrevision=middle
else (middle don't has the bug) startrevision=middle+1 finalrevision=finalrevision-1
Probably still bugged, but it should work for a human.
Ops, big mistake in the algorithm description,
if revision middle has the bug
startrevision =middle+ 1
finalrevision =finalrevision- 1
startrevision =startrevision+ 1
finalrevision =middle- 1
else (middle don't has the bug)
should have been
if revision middle has the bug
startrevision =startrevision+ 1
finalrevision =middle
startrevision =middle+ 1
finalrevision =finalrevision- 1
else (middle don't has the bug)
Probably still bugged, but it should work for a human.