Commit 9fa17f93 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(search_buffer): Cast p_limit to EMACS_INT not int.

parent 2132af72
......@@ -1176,7 +1176,7 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt, posix)
as we don't step by infinity. So pick the kind
that works when we do step by infinity. */
if ((EMACS_INT) (p_limit + infinity) > (EMACS_INT) p_limit)
while ((EMACS_INT) cursor <= (int) p_limit)
while ((EMACS_INT) cursor <= (EMACS_INT) p_limit)
cursor += BM_tab[*cursor];
else
while ((unsigned EMACS_INT) cursor <= (unsigned EMACS_INT) p_limit)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment