WEIRD PROBLEM NOT SURE WHERE IT CAME FROM fix
This commit is contained in:
parent
4640349de8
commit
1d1ae13d82
|
@ -79,7 +79,7 @@ token_index_from_pos(Token *tokens, i64 count, i64 pos){
|
||||||
for (;;){
|
for (;;){
|
||||||
i64 index = (first + one_past_last) >> 1;
|
i64 index = (first + one_past_last) >> 1;
|
||||||
i64 index_pos = tokens[index].pos;
|
i64 index_pos = tokens[index].pos;
|
||||||
if (index_pos > p){
|
if (index_pos > pos){
|
||||||
one_past_last = index;
|
one_past_last = index;
|
||||||
}
|
}
|
||||||
else if (index_pos + tokens[index].size <= pos){
|
else if (index_pos + tokens[index].size <= pos){
|
||||||
|
|
Loading…
Reference in New Issue