summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-08-23 00:33:29 +0000
committerKarl Heuer <kwzh@gnu.org>1994-08-23 00:33:29 +0000
commit26faf9f443bd227a7852225718addfac0cb1000a (patch)
tree6dd37222cf61bb7de20df7021039391774b35e1b /src/search.c
parent6e50b66b3db571ac0b53778f67fa67b36b838159 (diff)
downloademacs-26faf9f443bd227a7852225718addfac0cb1000a.tar.gz
(Fstring_match): Fix sign error.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index ff9eefec917..7f006883270 100644
--- a/src/search.c
+++ b/src/search.c
@@ -215,7 +215,7 @@ matched by parenthesis constructs in the pattern.")
CHECK_NUMBER (start, 2);
s = XINT (start);
if (s < 0 && -s <= len)
- s = len - s;
+ s = len + s;
else if (0 > s || s > len)
args_out_of_range (string, start);
}