aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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.")
215 CHECK_NUMBER (start, 2); 215 CHECK_NUMBER (start, 2);
216 s = XINT (start); 216 s = XINT (start);
217 if (s < 0 && -s <= len) 217 if (s < 0 && -s <= len)
218 s = len - s; 218 s = len + s;
219 else if (0 > s || s > len) 219 else if (0 > s || s > len)
220 args_out_of_range (string, start); 220 args_out_of_range (string, start);
221 } 221 }