aboutsummaryrefslogtreecommitdiffstats
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index 818bb4af246..7389fbef0ee 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1028,8 +1028,7 @@ search_command (Lisp_Object string, Lisp_Object bound, Lisp_Object noerror,
1028 } 1028 }
1029 else 1029 else
1030 { 1030 {
1031 CHECK_FIXNUM_COERCE_MARKER (bound); 1031 lim = fix_position (bound);
1032 lim = XFIXNUM (bound);
1033 if (n > 0 ? lim < PT : lim > PT) 1032 if (n > 0 ? lim < PT : lim > PT)
1034 error ("Invalid search bound (wrong side of point)"); 1033 error ("Invalid search bound (wrong side of point)");
1035 if (lim > ZV) 1034 if (lim > ZV)