Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t7503: verify proper hook execution
[gitweb.git]
/
sh-i18n--envsubst.c
diff --git
a/sh-i18n--envsubst.c
b/sh-i18n--envsubst.c
index cecfdd36c7e696dce6188aea3398fbe8857d798b..e7430b9aa8ecf136a7d625ee059822e1e1a74b26 100644
(file)
--- a/
sh-i18n--envsubst.c
+++ b/
sh-i18n--envsubst.c
@@
-249,7
+249,7
@@
sorted_string_list_member (const string_list_ty *slp, const char *s)
{
/* Here we know that if s is in the list, it is at an index j
with j1 <= j < j2. */
- size_t j =
(j1 + j2) >> 1
;
+ size_t j =
j1 + ((j2 - j1) >> 1)
;
int result = strcmp (slp->item[j], s);
if (result > 0)