X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sh-i18n--envsubst.c;h=e7430b9aa8ecf136a7d625ee059822e1e1a74b26;hb=f45f88b2e483649cd063a7dc7826c03025683e56;hp=cecfdd36c7e696dce6188aea3398fbe8857d798b;hpb=dae29547c9f0a4895f02d3ba21dc93a7b666e830;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)