Fix "off by one" errors, fix find_target_ind
authorLukas Jiriste <ljiriste@student.42prague.com>
Sat, 24 Feb 2024 10:18:02 +0000 (11:18 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Sat, 24 Feb 2024 10:18:02 +0000 (11:18 +0100)
commit6c7ebe29b42f6d1983c09577d9a83ffad2b205c4
treece98e161df47a815d9613882b97aaf129f229e28
parent113fb7210d3acbc7de9d1a04e1cbf23f4c0c7f15
Fix "off by one" errors, fix find_target_ind

The function find_target_ind used (malfunctioning) binary search,
but that proved to be more difficult so I reimplemented it using
basic linear search.
src/push.c