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
commitd54f374b40ea90587cf9b95b012f2428450ce5b1 (patch)
tree1c9992d28b950319539065c63b5e842f589c2d21 /src/search.c
parentef1d0de5f01f09c27154c358b8ee4a43762fae75 (diff)
downloademacs-d54f374b40ea90587cf9b95b012f2428450ce5b1.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);
}