Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bw/grep-recurse-submodules' into maint
[gitweb.git]
/
compat
/
regex
/
regexec.c
diff --git
a/compat/regex/regexec.c
b/compat/regex/regexec.c
index 0a745d9c3b375fbfdefa3afcd021b952cef0e685..6f2b48a78bc3d8578a3a1a1e8fc28757ef2ea78b 100644
(file)
--- a/
compat/regex/regexec.c
+++ b/
compat/regex/regexec.c
@@
-4284,7
+4284,7
@@
search_cur_bkref_entry (const re_match_context_t *mctx, int str_idx)
last = right = mctx->nbkref_ents;
for (left = 0; left < right;)
{
- mid =
(left + righ
t) / 2;
+ mid =
left + (right - lef
t) / 2;
if (mctx->bkref_ents[mid].str_idx < str_idx)
left = mid + 1;
else