X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sh-i18n--envsubst.c;h=e7430b9aa8ecf136a7d625ee059822e1e1a74b26;hb=f696a2b1c850c81130740945835beec72727debf;hp=cecfdd36c7e696dce6188aea3398fbe8857d798b;hpb=747201d0c847980b3dc63eb0afc583dfac9c9d20;p=thirdparty%2Fgit.git diff --git a/sh-i18n--envsubst.c b/sh-i18n--envsubst.c index cecfdd36c7..e7430b9aa8 100644 --- 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)